Struct gstreamer_pbutils::DiscovererSerializeFlags [−]
pub struct DiscovererSerializeFlags { /* fields omitted */ }Methods
impl DiscovererSerializeFlags
impl DiscovererSerializeFlagspub const BASIC: DiscovererSerializeFlags
BASIC: DiscovererSerializeFlags = DiscovererSerializeFlags{bits: 0,}
pub const CAPS: DiscovererSerializeFlags
CAPS: DiscovererSerializeFlags = DiscovererSerializeFlags{bits: 1,}
pub const TAGS: DiscovererSerializeFlags
TAGS: DiscovererSerializeFlags = DiscovererSerializeFlags{bits: 2,}
pub const MISC: DiscovererSerializeFlags
MISC: DiscovererSerializeFlags = DiscovererSerializeFlags{bits: 4,}
pub const ALL: DiscovererSerializeFlags
ALL: DiscovererSerializeFlags = DiscovererSerializeFlags{bits: 7,}
pub fn empty() -> DiscovererSerializeFlags
pub fn empty() -> DiscovererSerializeFlagsReturns an empty set of flags.
pub fn all() -> DiscovererSerializeFlags
pub fn all() -> DiscovererSerializeFlagsReturns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<DiscovererSerializeFlags>
pub fn from_bits(bits: u32) -> Option<DiscovererSerializeFlags>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> DiscovererSerializeFlags
pub fn from_bits_truncate(bits: u32) -> DiscovererSerializeFlagsConvert 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: DiscovererSerializeFlags) -> bool
pub fn intersects(&self, other: DiscovererSerializeFlags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: DiscovererSerializeFlags) -> bool
pub fn contains(&self, other: DiscovererSerializeFlags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: DiscovererSerializeFlags)
pub fn insert(&mut self, other: DiscovererSerializeFlags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: DiscovererSerializeFlags)
pub fn remove(&mut self, other: DiscovererSerializeFlags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: DiscovererSerializeFlags)
pub fn toggle(&mut self, other: DiscovererSerializeFlags)Toggles the specified flags in-place.
pub fn set(&mut self, other: DiscovererSerializeFlags, value: bool)
pub fn set(&mut self, other: DiscovererSerializeFlags, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for DiscovererSerializeFlags
impl Copy for DiscovererSerializeFlagsimpl PartialEq for DiscovererSerializeFlags
impl PartialEq for DiscovererSerializeFlagsfn eq(&self, other: &DiscovererSerializeFlags) -> bool
fn eq(&self, other: &DiscovererSerializeFlags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &DiscovererSerializeFlags) -> bool
fn ne(&self, other: &DiscovererSerializeFlags) -> boolThis method tests for !=.
impl Eq for DiscovererSerializeFlags
impl Eq for DiscovererSerializeFlagsimpl Clone for DiscovererSerializeFlags
impl Clone for DiscovererSerializeFlagsfn clone(&self) -> DiscovererSerializeFlags
fn clone(&self) -> DiscovererSerializeFlagsReturns 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 DiscovererSerializeFlags
impl PartialOrd for DiscovererSerializeFlagsfn partial_cmp(&self, other: &DiscovererSerializeFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &DiscovererSerializeFlags) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &DiscovererSerializeFlags) -> bool
fn lt(&self, other: &DiscovererSerializeFlags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &DiscovererSerializeFlags) -> bool
fn le(&self, other: &DiscovererSerializeFlags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &DiscovererSerializeFlags) -> bool
fn gt(&self, other: &DiscovererSerializeFlags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &DiscovererSerializeFlags) -> bool
fn ge(&self, other: &DiscovererSerializeFlags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for DiscovererSerializeFlags
impl Ord for DiscovererSerializeFlagsfn cmp(&self, other: &DiscovererSerializeFlags) -> Ordering
fn cmp(&self, other: &DiscovererSerializeFlags) -> 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 DiscovererSerializeFlags
impl Hash for DiscovererSerializeFlagsfn 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 DiscovererSerializeFlags
impl Debug for DiscovererSerializeFlagsimpl Binary for DiscovererSerializeFlags
impl Binary for DiscovererSerializeFlagsimpl Octal for DiscovererSerializeFlags
impl Octal for DiscovererSerializeFlagsimpl LowerHex for DiscovererSerializeFlags
impl LowerHex for DiscovererSerializeFlagsimpl UpperHex for DiscovererSerializeFlags
impl UpperHex for DiscovererSerializeFlagsimpl BitOr for DiscovererSerializeFlags
impl BitOr for DiscovererSerializeFlagstype Output = DiscovererSerializeFlags
The resulting type after applying the | operator.
fn bitor(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlags
fn bitor(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlagsReturns the union of the two sets of flags.
impl BitOrAssign for DiscovererSerializeFlags
impl BitOrAssign for DiscovererSerializeFlagsfn bitor_assign(&mut self, other: DiscovererSerializeFlags)
fn bitor_assign(&mut self, other: DiscovererSerializeFlags)Adds the set of flags.
impl BitXor for DiscovererSerializeFlags
impl BitXor for DiscovererSerializeFlagstype Output = DiscovererSerializeFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlags
fn bitxor(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlagsReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for DiscovererSerializeFlags
impl BitXorAssign for DiscovererSerializeFlagsfn bitxor_assign(&mut self, other: DiscovererSerializeFlags)
fn bitxor_assign(&mut self, other: DiscovererSerializeFlags)Toggles the set of flags.
impl BitAnd for DiscovererSerializeFlags
impl BitAnd for DiscovererSerializeFlagstype Output = DiscovererSerializeFlags
The resulting type after applying the & operator.
fn bitand(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlags
fn bitand(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlagsReturns the intersection between the two sets of flags.
impl BitAndAssign for DiscovererSerializeFlags
impl BitAndAssign for DiscovererSerializeFlagsfn bitand_assign(&mut self, other: DiscovererSerializeFlags)
fn bitand_assign(&mut self, other: DiscovererSerializeFlags)Disables all flags disabled in the set.
impl Sub for DiscovererSerializeFlags
impl Sub for DiscovererSerializeFlagstype Output = DiscovererSerializeFlags
The resulting type after applying the - operator.
fn sub(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlags
fn sub(self, other: DiscovererSerializeFlags) -> DiscovererSerializeFlagsReturns the set difference of the two sets of flags.
impl SubAssign for DiscovererSerializeFlags
impl SubAssign for DiscovererSerializeFlagsfn sub_assign(&mut self, other: DiscovererSerializeFlags)
fn sub_assign(&mut self, other: DiscovererSerializeFlags)Disables all flags enabled in the set.
impl Not for DiscovererSerializeFlags
impl Not for DiscovererSerializeFlagstype Output = DiscovererSerializeFlags
The resulting type after applying the ! operator.
fn not(self) -> DiscovererSerializeFlags
fn not(self) -> DiscovererSerializeFlagsReturns the complement of this set of flags.
impl Extend<DiscovererSerializeFlags> for DiscovererSerializeFlags
impl Extend<DiscovererSerializeFlags> for DiscovererSerializeFlagsfn extend<T: IntoIterator<Item = DiscovererSerializeFlags>>(
&mut self,
iterator: T
)
fn extend<T: IntoIterator<Item = DiscovererSerializeFlags>>(
&mut self,
iterator: T
)Extends a collection with the contents of an iterator. Read more
impl FromIterator<DiscovererSerializeFlags> for DiscovererSerializeFlags
impl FromIterator<DiscovererSerializeFlags> for DiscovererSerializeFlagsfn from_iter<T: IntoIterator<Item = DiscovererSerializeFlags>>(
iterator: T
) -> DiscovererSerializeFlags
fn from_iter<T: IntoIterator<Item = DiscovererSerializeFlags>>(
iterator: T
) -> DiscovererSerializeFlagsCreates a value from an iterator. Read more
impl StaticType for DiscovererSerializeFlags[src]
impl StaticType for DiscovererSerializeFlagsfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for DiscovererSerializeFlags[src]
impl<'a> FromValueOptional<'a> for DiscovererSerializeFlagsunsafe fn from_value_optional(value: &Value) -> Option<Self>[src]
unsafe fn from_value_optional(value: &Value) -> Option<Self>impl<'a> FromValue<'a> for DiscovererSerializeFlags[src]
impl<'a> FromValue<'a> for DiscovererSerializeFlagsunsafe fn from_value(value: &Value) -> Self[src]
unsafe fn from_value(value: &Value) -> Selfimpl SetValue for DiscovererSerializeFlags[src]
impl SetValue for DiscovererSerializeFlagsAuto Trait Implementations
impl Send for DiscovererSerializeFlags
impl Send for DiscovererSerializeFlagsimpl Sync for DiscovererSerializeFlags
impl Sync for DiscovererSerializeFlags