pub struct PrimitiveSchema { /* private fields */ }Implementations§
Source§impl PrimitiveSchema
impl PrimitiveSchema
pub fn new(identifier: String, variables: Vec<NamedPrimitive>) -> Self
pub fn get_identifier(&self) -> &str
pub fn get_variables(&self) -> &impl IntoIterator<Item = NamedPrimitive>
pub fn get_offset(&self, varbl: &NamedPrimitive) -> Option<usize>
pub fn size_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for PrimitiveSchema
impl Clone for PrimitiveSchema
Source§fn clone(&self) -> PrimitiveSchema
fn clone(&self) -> PrimitiveSchema
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 moreAuto Trait Implementations§
impl Freeze for PrimitiveSchema
impl RefUnwindSafe for PrimitiveSchema
impl Send for PrimitiveSchema
impl Sync for PrimitiveSchema
impl Unpin for PrimitiveSchema
impl UnwindSafe for PrimitiveSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)