pub struct Options {
pub bytes: Option<usize>,
pub lines: Option<usize>,
}
Fields§
§bytes: Option<usize>
Get the first n bytes of each file
lines: Option<usize>
Get the first n lines instead of the first 10
lines.
If both bytes
and lines
are specified, only lines
is used.
Implementations§
Source§impl Options
impl Options
pub fn with_bytes(bytes: usize) -> Self
pub fn with_lines(lines: usize) -> Self
Trait Implementations§
impl Copy for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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