Struct buffalo::DynamicStructIndexReader
source · [−]pub struct DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType, { /* private fields */ }
Implementations
sourceimpl<'a, I> DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
impl<'a, I> DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
pub fn new(
bytes: &'a [u8],
position: Position<Self>
) -> DynamicStructIndexReader<'a, I>
pub fn field_count(&self) -> DynamicStructIndexFieldCount<I>
pub fn get_field_offset(
&self,
field_id: DynamicStructIndexFieldId<I>
) -> DynamicStructIndexFieldOffset<I>
Trait Implementations
sourceimpl<'a, I: Clone> Clone for DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
impl<'a, I: Clone> Clone for DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
sourcefn clone(&self) -> DynamicStructIndexReader<'a, I>
fn clone(&self) -> DynamicStructIndexReader<'a, I>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, I: Debug> Debug for DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
impl<'a, I: Debug> Debug for DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
impl<'a, I: Copy> Copy for DynamicStructIndexReader<'a, I> where
I: DynamicStructIndexType,
Auto Trait Implementations
impl<'a, I> RefUnwindSafe for DynamicStructIndexReader<'a, I> where
I: RefUnwindSafe,
impl<'a, I> Send for DynamicStructIndexReader<'a, I> where
I: Send,
impl<'a, I> Sync for DynamicStructIndexReader<'a, I> where
I: Sync,
impl<'a, I> Unpin for DynamicStructIndexReader<'a, I> where
I: Unpin,
impl<'a, I> UnwindSafe for DynamicStructIndexReader<'a, I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more