pub struct Flags(/* private fields */);Expand description
Feature flags (bitmask) — spec §3.2.
Implementations§
Source§impl Flags
impl Flags
Sourcepub const TRUENO_NATIVE: u8 = 0b0001_0000
pub const TRUENO_NATIVE: u8 = 0b0001_0000
64-byte aligned tensors for zero-copy SIMD (trueno-native)
Sourcepub const HAS_MODEL_CARD: u8 = 0b0100_0000
pub const HAS_MODEL_CARD: u8 = 0b0100_0000
Has model card metadata
Sourcepub fn with_encrypted(self) -> Self
pub fn with_encrypted(self) -> Self
Set encrypted flag.
Sourcepub fn with_signed(self) -> Self
pub fn with_signed(self) -> Self
Set signed flag.
Sourcepub fn with_streaming(self) -> Self
pub fn with_streaming(self) -> Self
Set streaming flag.
Sourcepub fn with_licensed(self) -> Self
pub fn with_licensed(self) -> Self
Set licensed flag.
Sourcepub fn with_trueno_native(self) -> Self
pub fn with_trueno_native(self) -> Self
Set trueno-native flag.
Sourcepub fn with_quantized(self) -> Self
pub fn with_quantized(self) -> Self
Set quantized flag.
Sourcepub fn with_model_card(self) -> Self
pub fn with_model_card(self) -> Self
Set model card flag.
Sourcepub fn is_encrypted(self) -> bool
pub fn is_encrypted(self) -> bool
Check if encrypted.
Sourcepub fn is_streaming(self) -> bool
pub fn is_streaming(self) -> bool
Check if streaming.
Sourcepub fn is_licensed(self) -> bool
pub fn is_licensed(self) -> bool
Check if licensed.
Sourcepub fn is_trueno_native(self) -> bool
pub fn is_trueno_native(self) -> bool
Check if trueno-native.
Sourcepub fn is_quantized(self) -> bool
pub fn is_quantized(self) -> bool
Check if quantized.
Sourcepub fn has_model_card(self) -> bool
pub fn has_model_card(self) -> bool
Check if has model card.
Trait Implementations§
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