pub struct Prefix {
pub text: String,
pub size: u64,
}Expand description
The start of a file read by read_prefix.
Fields§
§text: StringAt most the asked number of bytes, as text, without a byte-order mark.
size: u64The file’s size, more than text holds when it was cut.
Implementations§
Auto Trait Implementations§
impl Freeze for Prefix
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnsafeUnpin for Prefix
impl UnwindSafe for Prefix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more