# Type Alias std::vec::Vec

1.0.0 · source ·

    pub type Vec<T, A = Global> = Vec<T, A>;

## Aliased Type§

    struct Vec<T, A = Global> { /* private fields */ }

## Trait Implementations§

source§

### impl<A: Allocator> Write for Vec<u8, A>

Write is implemented for `Vec<u8>` by appending to the vector. The vector will grow as needed.

source§

#### fn write(&mut self, buf: &[u8]) -> Result<usize>

Write a buffer into this writer, returning how many bytes were written. Read more
source§

#### fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>

Like `write`, except that it writes from a slice of buffers. Read more
source§

#### fn is_write_vectored(&self) -> bool

🔬This is a nightly-only experimental API. (`can_vector` #69941)
Determines if this `Write`r has an efficient `write_vectored` implementation. Read more
source§

#### fn write_all(&mut self, buf: &[u8]) -> Result<()>

Attempts to write an entire buffer into this writer. Read more
source§

#### fn flush(&mut self) -> Result<()>

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
source§

#### fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<()>

🔬This is a nightly-only experimental API. (`write_all_vectored` #70436)
Attempts to write multiple buffers into this writer. Read more
source§

#### fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>

Writes a formatted string into this writer, returning any error encountered. Read more
source§

#### fn by_ref(&mut self) -> &mut Self where Self: Sized,

Creates a “by reference” adapter for this instance of `Write`. Read more