Enum stam::OffsetMode
source · pub enum OffsetMode {
BeginBegin,
BeginEnd,
EndEnd,
EndBegin,
}Expand description
Variants§
BeginBegin
Offset where both the begin and end positions are specified using a begin-aligned cursor (Cursor::BeginAligned)
This is by-far the most common offset mode.
BeginEnd
Offset where the begin position is specified using a begin-aligned cursor (Cursor::BeginAligned)
and the end position using an end-aligned cursor (Cursor::EndAligned)
EndEnd
Offset where both the begin and end positions are specified using an end-aligned cursor (Cursor::EndAligned)
EndBegin
Offset where the end position is specified using a begin-aligned cursor (Cursor::BeginAligned)
and the begin position using an end-aligned cursor (Cursor::EndAligned)
Trait Implementations§
source§impl Clone for OffsetMode
impl Clone for OffsetMode
source§fn clone(&self) -> OffsetMode
fn clone(&self) -> OffsetMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl DataSize for OffsetMode
impl DataSize for OffsetMode
source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true, the type has a heap size that can vary at runtime, depending on the actual value.source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
source§impl Debug for OffsetMode
impl Debug for OffsetMode
source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for OffsetMode
impl<'bytes, Ctx> Decode<'bytes, Ctx> for OffsetMode
source§impl Default for OffsetMode
impl Default for OffsetMode
source§impl<Ctx> Encode<Ctx> for OffsetMode
impl<Ctx> Encode<Ctx> for OffsetMode
source§impl From<&Offset> for OffsetMode
impl From<&Offset> for OffsetMode
source§fn from(offset: &Offset) -> OffsetMode
fn from(offset: &Offset) -> OffsetMode
Converts to this type from the input type.
source§impl PartialEq for OffsetMode
impl PartialEq for OffsetMode
source§fn eq(&self, other: &OffsetMode) -> bool
fn eq(&self, other: &OffsetMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for OffsetMode
impl StructuralPartialEq for OffsetMode
Auto Trait Implementations§
impl RefUnwindSafe for OffsetMode
impl Send for OffsetMode
impl Sync for OffsetMode
impl Unpin for OffsetMode
impl UnwindSafe for OffsetMode
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