Struct utf8_io::Utf8Writer [−][src]
pub struct Utf8Writer<Inner: Write> { /* fields omitted */ }
Expand description
A Write
implementation which translates into an output Write
producing a valid UTF-8 sequence from an arbitrary byte sequence from an
arbitrary byte sequence. Attempts to write invalid encodings are reported
as errors.
This type’s write
is not guaranteed to perform a single underlying
write
operation, because short writes could produce invalid UTF-8, so
write
will retry as needed.
Implementations
Flush any pending output and return the inner stream.
Trait Implementations
Borrows the file descriptor. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl<Inner> RefUnwindSafe for Utf8Writer<Inner> where
Inner: RefUnwindSafe,
impl<Inner> Send for Utf8Writer<Inner> where
Inner: Send,
impl<Inner> Sync for Utf8Writer<Inner> where
Inner: Sync,
impl<Inner> Unpin for Utf8Writer<Inner> where
Inner: Unpin,
impl<Inner> UnwindSafe for Utf8Writer<Inner> where
Inner: UnwindSafe,
Blanket Implementations
Borrows the reference. Read more
pub fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromFilelike + IntoFilelike,
pub fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromFilelike + IntoFilelike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target
. Read more
Extracts the grip.
Returns the raw value.
Extracts the raw grip.
Returns the raw value.
Borrows the reference.
pub fn as_socketlike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
pub fn as_socketlike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target
. Read more
Mutably borrows from an owned value. Read more