[−][src]Struct readfilez::LengthSpec
Fields
bound: Option<usize>
is_exact: bool
Implementations
impl LengthSpec
[src]
pub fn new(bound: Option<usize>, is_exact: bool) -> Self
[src]
Arguments:
bound
? (read at most $n bytes) : (read until EOF)is_exact
? (request exactly length or fail) : (request biggest readable slice with length as upper bound)
Trait Implementations
impl Clone for LengthSpec
[src]
pub fn clone(&self) -> LengthSpec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LengthSpec
[src]
impl Debug for LengthSpec
[src]
impl Default for LengthSpec
[src]
impl Eq for LengthSpec
[src]
impl Hash for LengthSpec
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<LengthSpec> for LengthSpec
[src]
pub fn eq(&self, other: &LengthSpec) -> bool
[src]
pub fn ne(&self, other: &LengthSpec) -> bool
[src]
impl StructuralEq for LengthSpec
[src]
impl StructuralPartialEq for LengthSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for LengthSpec
[src]
impl Send for LengthSpec
[src]
impl Sync for LengthSpec
[src]
impl Unpin for LengthSpec
[src]
impl UnwindSafe for LengthSpec
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,