#[non_exhaustive]pub struct FieldsetMetadata {
pub byte_order: ByteOrder,
}Expand description
Metadata about fieldsets
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.byte_order: ByteOrderThe byte order of the fieldset
Implementations§
Source§impl FieldsetMetadata
impl FieldsetMetadata
Sourcepub const DEFAULT: Self
pub const DEFAULT: Self
A default that allows you to construct the metadata in const contexts.
Yields the same value as Self::default.
Sourcepub const fn with_byte_order(self, byte_order: ByteOrder) -> Self
pub const fn with_byte_order(self, byte_order: ByteOrder) -> Self
Set the byte order
Trait Implementations§
Source§impl Clone for FieldsetMetadata
impl Clone for FieldsetMetadata
Source§fn clone(&self) -> FieldsetMetadata
fn clone(&self) -> FieldsetMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldsetMetadata
impl Debug for FieldsetMetadata
Source§impl Default for FieldsetMetadata
impl Default for FieldsetMetadata
impl Eq for FieldsetMetadata
Source§impl Hash for FieldsetMetadata
impl Hash for FieldsetMetadata
Source§impl PartialEq for FieldsetMetadata
impl PartialEq for FieldsetMetadata
impl StructuralPartialEq for FieldsetMetadata
Auto Trait Implementations§
impl Freeze for FieldsetMetadata
impl RefUnwindSafe for FieldsetMetadata
impl Send for FieldsetMetadata
impl Sync for FieldsetMetadata
impl Unpin for FieldsetMetadata
impl UnsafeUnpin for FieldsetMetadata
impl UnwindSafe for FieldsetMetadata
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