Sha256: 2b5b2ed982f00d5bde7a3773b282e37c09722895ce915102cc8ccd78e391e866

Contents?: true

Size: 534 Bytes

Versions: 8

Compression:

Stored size: 534 Bytes

Contents

use crate::{ErrorType, Write};
use alloc::vec::Vec;

#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
impl ErrorType for Vec<u8> {
    type Error = core::convert::Infallible;
}

#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
impl Write for Vec<u8> {
    #[inline]
    fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
        self.extend_from_slice(buf);
        Ok(buf.len())
    }

    #[inline]
    fn flush(&mut self) -> Result<(), Self::Error> {
        Ok(())
    }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-28.0.0 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-27.0.0 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-26.0.0 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-25.0.2 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-25.0.1 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-25.0.0 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs
wasmtime-24.0.0 ./ext/cargo-vendor/embedded-io-0.6.1/src/impls/vec.rs