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) -> Flags
pub fn with_encrypted(self) -> Flags
Set encrypted flag.
Sourcepub fn with_signed(self) -> Flags
pub fn with_signed(self) -> Flags
Set signed flag.
Sourcepub fn with_streaming(self) -> Flags
pub fn with_streaming(self) -> Flags
Set streaming flag.
Sourcepub fn with_licensed(self) -> Flags
pub fn with_licensed(self) -> Flags
Set licensed flag.
Sourcepub fn with_trueno_native(self) -> Flags
pub fn with_trueno_native(self) -> Flags
Set trueno-native flag.
Sourcepub fn with_quantized(self) -> Flags
pub fn with_quantized(self) -> Flags
Set quantized flag.
Sourcepub fn with_model_card(self) -> Flags
pub fn with_model_card(self) -> Flags
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more