pub struct Flags(pub u16);Expand description
Helper struct for working with flags
Tuple Fields§
§0: u16Implementations§
Source§impl Flags
impl Flags
Sourcepub const fn is_compressed(&self) -> bool
pub const fn is_compressed(&self) -> bool
Check if compressed flag is set
Sourcepub const fn has_embeddings(&self) -> bool
pub const fn has_embeddings(&self) -> bool
Check if embeddings flag is set
Sourcepub const fn is_tokenized(&self) -> bool
pub const fn is_tokenized(&self) -> bool
Check if tokenized flag is set
Sourcepub const fn has_weights(&self) -> bool
pub const fn has_weights(&self) -> bool
Check if weighted flag is set
Sourcepub const fn has_model_hints(&self) -> bool
pub const fn has_model_hints(&self) -> bool
Check if model hints flag is set
Sourcepub fn set_compressed(&mut self, value: bool)
pub fn set_compressed(&mut self, value: bool)
Set compressed flag
Sourcepub fn set_embeddings(&mut self, value: bool)
pub fn set_embeddings(&mut self, value: bool)
Set embeddings flag
Sourcepub fn set_tokenized(&mut self, value: bool)
pub fn set_tokenized(&mut self, value: bool)
Set tokenized flag
Sourcepub fn set_weighted(&mut self, value: bool)
pub fn set_weighted(&mut self, value: bool)
Set weighted flag
Sourcepub fn set_model_hints(&mut self, value: bool)
pub fn set_model_hints(&mut self, value: bool)
Set model hints flag
Sourcepub fn set_signed(&mut self, value: bool)
pub fn set_signed(&mut self, value: bool)
Set signed flag
Sourcepub const fn has_string_table(&self) -> bool
pub const fn has_string_table(&self) -> bool
Check if string table flag is set
Sourcepub fn set_string_table(&mut self, value: bool)
pub fn set_string_table(&mut self, value: bool)
Set string table flag
Sourcepub const fn is_resolved(&self) -> bool
pub const fn is_resolved(&self) -> bool
Check if resolved flag is set (enterprise chain resolution)
Sourcepub fn set_resolved(&mut self, value: bool)
pub fn set_resolved(&mut self, value: bool)
Set resolved flag (enterprise chain resolution)
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnsafeUnpin for Flags
impl UnwindSafe for Flags
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.