pub enum Truncate {
RemovingStart,
RemovingEnd,
}
Expand description
Controls which location of a file to remove data from during a truncation.
Variants§
RemovingStart
Remove data from the start (head) of the file when truncating.
RemovingEnd
Remove data from the end (tail) of the file when truncating.
Trait Implementations§
source§impl PartialEq for Truncate
impl PartialEq for Truncate
impl Copy for Truncate
impl Eq for Truncate
impl StructuralEq for Truncate
impl StructuralPartialEq for Truncate
Auto Trait Implementations§
impl RefUnwindSafe for Truncate
impl Send for Truncate
impl Sync for Truncate
impl Unpin for Truncate
impl UnwindSafe for Truncate
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.