Struct soup_sys::SoupCacheability [−]
#[repr(C)]pub struct SoupCacheability { /* fields omitted */ }
Methods
impl SoupCacheability
impl SoupCacheabilitypub const CACHEABLE: SoupCacheability
CACHEABLE: SoupCacheability = SoupCacheability{bits: 1,}
pub const UNCACHEABLE: SoupCacheability
UNCACHEABLE: SoupCacheability = SoupCacheability{bits: 2,}
pub const INVALIDATES: SoupCacheability
INVALIDATES: SoupCacheability = SoupCacheability{bits: 4,}
pub const VALIDATES: SoupCacheability
VALIDATES: SoupCacheability = SoupCacheability{bits: 8,}
pub fn empty() -> SoupCacheability
pub fn empty() -> SoupCacheabilityReturns an empty set of flags.
pub fn all() -> SoupCacheability
pub fn all() -> SoupCacheabilityReturns the set containing all flags.
pub fn bits(&self) -> c_uint
pub fn bits(&self) -> c_uintReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_uint) -> Option<SoupCacheability>
pub fn from_bits(bits: c_uint) -> Option<SoupCacheability>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_uint) -> SoupCacheability
pub fn from_bits_truncate(bits: c_uint) -> SoupCacheabilityConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: SoupCacheability) -> bool
pub fn intersects(&self, other: SoupCacheability) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: SoupCacheability) -> bool
pub fn contains(&self, other: SoupCacheability) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: SoupCacheability)
pub fn insert(&mut self, other: SoupCacheability)Inserts the specified flags in-place.
pub fn remove(&mut self, other: SoupCacheability)
pub fn remove(&mut self, other: SoupCacheability)Removes the specified flags in-place.
pub fn toggle(&mut self, other: SoupCacheability)
pub fn toggle(&mut self, other: SoupCacheability)Toggles the specified flags in-place.
pub fn set(&mut self, other: SoupCacheability, value: bool)
pub fn set(&mut self, other: SoupCacheability, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for SoupCacheability
impl Copy for SoupCacheabilityimpl PartialEq for SoupCacheability
impl PartialEq for SoupCacheabilityfn eq(&self, other: &SoupCacheability) -> bool
fn eq(&self, other: &SoupCacheability) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SoupCacheability) -> bool
fn ne(&self, other: &SoupCacheability) -> boolThis method tests for !=.
impl Eq for SoupCacheability
impl Eq for SoupCacheabilityimpl Clone for SoupCacheability
impl Clone for SoupCacheabilityfn clone(&self) -> SoupCacheability
fn clone(&self) -> SoupCacheabilityReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialOrd for SoupCacheability
impl PartialOrd for SoupCacheabilityfn partial_cmp(&self, other: &SoupCacheability) -> Option<Ordering>
fn partial_cmp(&self, other: &SoupCacheability) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &SoupCacheability) -> bool
fn lt(&self, other: &SoupCacheability) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &SoupCacheability) -> bool
fn le(&self, other: &SoupCacheability) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &SoupCacheability) -> bool
fn gt(&self, other: &SoupCacheability) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &SoupCacheability) -> bool
fn ge(&self, other: &SoupCacheability) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for SoupCacheability
impl Ord for SoupCacheabilityfn cmp(&self, other: &SoupCacheability) -> Ordering
fn cmp(&self, other: &SoupCacheability) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for SoupCacheability
impl Hash for SoupCacheabilityfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for SoupCacheability
impl Debug for SoupCacheabilityimpl Binary for SoupCacheability
impl Binary for SoupCacheabilityimpl Octal for SoupCacheability
impl Octal for SoupCacheabilityimpl LowerHex for SoupCacheability
impl LowerHex for SoupCacheabilityimpl UpperHex for SoupCacheability
impl UpperHex for SoupCacheabilityimpl BitOr for SoupCacheability
impl BitOr for SoupCacheabilitytype Output = SoupCacheability
The resulting type after applying the | operator.
fn bitor(self, other: SoupCacheability) -> SoupCacheability
fn bitor(self, other: SoupCacheability) -> SoupCacheabilityReturns the union of the two sets of flags.
impl BitOrAssign for SoupCacheability
impl BitOrAssign for SoupCacheabilityfn bitor_assign(&mut self, other: SoupCacheability)
fn bitor_assign(&mut self, other: SoupCacheability)Adds the set of flags.
impl BitXor for SoupCacheability
impl BitXor for SoupCacheabilitytype Output = SoupCacheability
The resulting type after applying the ^ operator.
fn bitxor(self, other: SoupCacheability) -> SoupCacheability
fn bitxor(self, other: SoupCacheability) -> SoupCacheabilityReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for SoupCacheability
impl BitXorAssign for SoupCacheabilityfn bitxor_assign(&mut self, other: SoupCacheability)
fn bitxor_assign(&mut self, other: SoupCacheability)Toggles the set of flags.
impl BitAnd for SoupCacheability
impl BitAnd for SoupCacheabilitytype Output = SoupCacheability
The resulting type after applying the & operator.
fn bitand(self, other: SoupCacheability) -> SoupCacheability
fn bitand(self, other: SoupCacheability) -> SoupCacheabilityReturns the intersection between the two sets of flags.
impl BitAndAssign for SoupCacheability
impl BitAndAssign for SoupCacheabilityfn bitand_assign(&mut self, other: SoupCacheability)
fn bitand_assign(&mut self, other: SoupCacheability)Disables all flags disabled in the set.
impl Sub for SoupCacheability
impl Sub for SoupCacheabilitytype Output = SoupCacheability
The resulting type after applying the - operator.
fn sub(self, other: SoupCacheability) -> SoupCacheability
fn sub(self, other: SoupCacheability) -> SoupCacheabilityReturns the set difference of the two sets of flags.
impl SubAssign for SoupCacheability
impl SubAssign for SoupCacheabilityfn sub_assign(&mut self, other: SoupCacheability)
fn sub_assign(&mut self, other: SoupCacheability)Disables all flags enabled in the set.
impl Not for SoupCacheability
impl Not for SoupCacheabilitytype Output = SoupCacheability
The resulting type after applying the ! operator.
fn not(self) -> SoupCacheability
fn not(self) -> SoupCacheabilityReturns the complement of this set of flags.
impl Extend<SoupCacheability> for SoupCacheability
impl Extend<SoupCacheability> for SoupCacheabilityfn extend<T: IntoIterator<Item = SoupCacheability>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SoupCacheability>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<SoupCacheability> for SoupCacheability
impl FromIterator<SoupCacheability> for SoupCacheabilityfn from_iter<T: IntoIterator<Item = SoupCacheability>>(
iterator: T
) -> SoupCacheability
fn from_iter<T: IntoIterator<Item = SoupCacheability>>(
iterator: T
) -> SoupCacheabilityCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for SoupCacheability
impl Send for SoupCacheabilityimpl Sync for SoupCacheability
impl Sync for SoupCacheability