Skip to main content

Module read

Module read 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (alloc_io #154046)

Macrosยง

impl_from_endian_bytes ๐Ÿ”’ Experimental

Constantsยง

DEFAULT_BUF_SIZE ๐Ÿ‘ป Experimental
Bare metal platforms usually have very small amounts of RAM (in the order of hundreds of KB)

Traitsยง

FromEndianBytesExperimental
Trait for types that can be converted from a fixed-size byte array with a specified endianness
ReadExperimental
The Read trait allows for reading bytes from a source.

Functionsยง

append_to_string ๐Ÿ”’ โš Experimental
Several read_to_string and read_line methods in the standard library will append data into a String buffer, but we need to be pretty careful when doing this. The implementation will just call .as_mut_vec() and then delegate to a byte-oriented reading method, but we must ensure that when returning we never leave buf in a state such that it contains invalid UTF-8 in its bounds.
default_read_buf ๐Ÿ‘ป Experimental
default_read_buf_exact ๐Ÿ”’ Experimental
default_read_exact ๐Ÿ”’ Experimental
default_read_to_end ๐Ÿ‘ป Experimental
Here we must serve many masters with conflicting goals:
default_read_to_string ๐Ÿ‘ป Experimental
default_read_vectored ๐Ÿ‘ป Experimental
read_to_stringExperimental
Reads all bytes from a reader into a new String.