Skip to main content

Module util

Module util 

Source
πŸ”¬This is a nightly-only experimental API. (core_io #154046)

Re-exportsΒ§

use crate::io; πŸ”’ Experimental
use crate::io::ErrorKind; πŸ”’
use crate::io::IoSlice; πŸ”’
use crate::io::Result; πŸ”’
use crate::io::Seek; πŸ”’
use crate::io::SeekFrom; πŸ”’
use crate::io::SizeHint; πŸ”’ Experimental
use crate::io::Write; πŸ”’
use crate::cmp; πŸ”’
use crate::fmt; πŸ”’

StructsΒ§

ChainExperimental
Adapter to chain together two readers.
EmptyExperimental
Empty ignores any data written via Write, and will always be empty (returning zero bytes) when read via Read.
RepeatExperimental
A reader which yields one byte over and over and over and over and over and…
SinkExperimental
A writer which will move data into the void.
TakeExperimental
Reader adapter which limits the bytes read from an underlying reader.

FunctionsΒ§

chain πŸ‘» Experimental
emptyExperimental
Creates a value that is always at EOF for reads, and ignores all data written.
repeatExperimental
Creates an instance of a reader that infinitely repeats one byte.
sinkExperimental
Creates an instance of a writer which will successfully consume all data.
take πŸ‘» Experimental