Skip to main content

Flags

Struct Flags 

Source
pub struct Flags { /* private fields */ }

Implementations§

Source§

impl Flags

Source

pub const HAS_DICT: Self

Source

pub const MEMFD_HINT: Self

Source

pub const SHARUN_COMPAT: Self

Source

pub const STORED: Self

Payload blocks are stored raw (no zstd). compressed_size equals original_size for every block; the runtime reads payload bytes directly without decompression.

Source

pub const EXTERNAL_UPDATER: Self

The package records an update URL but carries no updater, so it is updated by something else (a package manager, a deployment system). Set only for that case, which leaves every package built before this flag existed correctly describing itself as carrying an embedded updater.

Source

pub const NO_HOST_LIB_DIRS: Self

Do not put the host’s library directories on the search path.

The runtime adds them so host GPU drivers stay reachable, but they hold the whole system’s libraries, so any soname the bundle is missing is silently satisfied from the host and loaded next to the bundled libc. Set for packages that need nothing from the host.

Polarity is deliberate: unset means “expose”, so every package built before this flag existed keeps its behaviour.

Source

pub const fn empty() -> Self

Source

pub const fn bits(&self) -> u16

Source

pub const fn from_bits_retain(bits: u16) -> Self

Wrap raw bits, retaining every bit (including bits with no defined flag). Named to match its behavior; it does not mask to known flags the way real from_bits_truncate would.

Source

pub const fn contains(&self, other: Self) -> bool

Trait Implementations§

Source§

impl BitOr for Flags

Source§

type Output = Flags

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOrAssign for Flags

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl Clone for Flags

Source§

fn clone(&self) -> Flags

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Flags

Source§

impl Debug for Flags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Flags

Source§

impl PartialEq for Flags

Source§

fn eq(&self, other: &Flags) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.