Struct gstreamer::MemoryFlags [−][src]
pub struct MemoryFlags { /* fields omitted */ }
Flags for wrapped memory.
Implementations
impl MemoryFlags
[src]
impl MemoryFlags
[src]pub const READONLY: MemoryFlags
[src]
pub const READONLY: MemoryFlags
[src]memory is readonly. It is not allowed to map the
memory with [crate::MapFlags::Write
].
pub const NO_SHARE: MemoryFlags
[src]
pub const NO_SHARE: MemoryFlags
[src]memory must not be shared. Copies will have to be made when this memory needs to be shared between buffers.
pub const ZERO_PREFIXED: MemoryFlags
[src]
pub const ZERO_PREFIXED: MemoryFlags
[src]the memory prefix is filled with 0 bytes
pub const ZERO_PADDED: MemoryFlags
[src]
pub const ZERO_PADDED: MemoryFlags
[src]the memory padding is filled with 0 bytes
pub const PHYSICALLY_CONTIGUOUS: MemoryFlags
[src]
pub const PHYSICALLY_CONTIGUOUS: MemoryFlags
[src]the memory is physically contiguous. (Since: 1.2)
pub const NOT_MAPPABLE: MemoryFlags
[src]
pub const NOT_MAPPABLE: MemoryFlags
[src]the memory can’t be mapped via [crate::Memory::map()
] without any preconditions. (Since: 1.2)
pub const fn empty() -> MemoryFlags
[src]
pub const fn empty() -> MemoryFlags
[src]Returns an empty set of flags
pub const fn all() -> MemoryFlags
[src]
pub const fn all() -> MemoryFlags
[src]Returns the set containing all flags.
pub fn from_bits(bits: u32) -> Option<MemoryFlags>
[src]
pub fn from_bits(bits: u32) -> Option<MemoryFlags>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> MemoryFlags
[src]
pub const fn from_bits_truncate(bits: u32) -> MemoryFlags
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> MemoryFlags
[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> MemoryFlags
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: MemoryFlags) -> bool
[src]
pub const fn intersects(&self, other: MemoryFlags) -> bool
[src]Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: MemoryFlags) -> bool
[src]
pub const fn contains(&self, other: MemoryFlags) -> bool
[src]Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: MemoryFlags)
[src]
pub fn insert(&mut self, other: MemoryFlags)
[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: MemoryFlags)
[src]
pub fn remove(&mut self, other: MemoryFlags)
[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: MemoryFlags)
[src]
pub fn toggle(&mut self, other: MemoryFlags)
[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: MemoryFlags, value: bool)
[src]
pub fn set(&mut self, other: MemoryFlags, value: bool)
[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for MemoryFlags
[src]
impl Binary for MemoryFlags
[src]impl BitAnd<MemoryFlags> for MemoryFlags
[src]
impl BitAnd<MemoryFlags> for MemoryFlags
[src]fn bitand(self, other: MemoryFlags) -> MemoryFlags
[src]
fn bitand(self, other: MemoryFlags) -> MemoryFlags
[src]Returns the intersection between the two sets of flags.
type Output = MemoryFlags
type Output = MemoryFlags
The resulting type after applying the &
operator.
impl BitAndAssign<MemoryFlags> for MemoryFlags
[src]
impl BitAndAssign<MemoryFlags> for MemoryFlags
[src]fn bitand_assign(&mut self, other: MemoryFlags)
[src]
fn bitand_assign(&mut self, other: MemoryFlags)
[src]Disables all flags disabled in the set.
impl BitOr<MemoryFlags> for MemoryFlags
[src]
impl BitOr<MemoryFlags> for MemoryFlags
[src]fn bitor(self, other: MemoryFlags) -> MemoryFlags
[src]
fn bitor(self, other: MemoryFlags) -> MemoryFlags
[src]Returns the union of the two sets of flags.
type Output = MemoryFlags
type Output = MemoryFlags
The resulting type after applying the |
operator.
impl BitOrAssign<MemoryFlags> for MemoryFlags
[src]
impl BitOrAssign<MemoryFlags> for MemoryFlags
[src]fn bitor_assign(&mut self, other: MemoryFlags)
[src]
fn bitor_assign(&mut self, other: MemoryFlags)
[src]Adds the set of flags.
impl BitXor<MemoryFlags> for MemoryFlags
[src]
impl BitXor<MemoryFlags> for MemoryFlags
[src]fn bitxor(self, other: MemoryFlags) -> MemoryFlags
[src]
fn bitxor(self, other: MemoryFlags) -> MemoryFlags
[src]Returns the left flags, but with all the right flags toggled.
type Output = MemoryFlags
type Output = MemoryFlags
The resulting type after applying the ^
operator.
impl BitXorAssign<MemoryFlags> for MemoryFlags
[src]
impl BitXorAssign<MemoryFlags> for MemoryFlags
[src]fn bitxor_assign(&mut self, other: MemoryFlags)
[src]
fn bitxor_assign(&mut self, other: MemoryFlags)
[src]Toggles the set of flags.
impl Clone for MemoryFlags
[src]
impl Clone for MemoryFlags
[src]fn clone(&self) -> MemoryFlags
[src]
fn clone(&self) -> MemoryFlags
[src]Returns 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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MemoryFlags
[src]
impl Debug for MemoryFlags
[src]impl Extend<MemoryFlags> for MemoryFlags
[src]
impl Extend<MemoryFlags> for MemoryFlags
[src]fn extend<T: IntoIterator<Item = MemoryFlags>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = MemoryFlags>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<MemoryFlags> for MemoryFlags
[src]
impl FromIterator<MemoryFlags> for MemoryFlags
[src]fn from_iter<T: IntoIterator<Item = MemoryFlags>>(iterator: T) -> MemoryFlags
[src]
fn from_iter<T: IntoIterator<Item = MemoryFlags>>(iterator: T) -> MemoryFlags
[src]Creates a value from an iterator. Read more
impl<'a> FromValue<'a> for MemoryFlags
[src]
impl<'a> FromValue<'a> for MemoryFlags
[src]type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
unsafe fn from_value(value: &'a Value) -> Self
[src]
unsafe fn from_value(value: &'a Value) -> Self
[src]Get the contained value from a Value
. Read more
impl Hash for MemoryFlags
[src]
impl Hash for MemoryFlags
[src]impl LowerHex for MemoryFlags
[src]
impl LowerHex for MemoryFlags
[src]impl Not for MemoryFlags
[src]
impl Not for MemoryFlags
[src]fn not(self) -> MemoryFlags
[src]
fn not(self) -> MemoryFlags
[src]Returns the complement of this set of flags.
type Output = MemoryFlags
type Output = MemoryFlags
The resulting type after applying the !
operator.
impl Octal for MemoryFlags
[src]
impl Octal for MemoryFlags
[src]impl Ord for MemoryFlags
[src]
impl Ord for MemoryFlags
[src]impl PartialEq<MemoryFlags> for MemoryFlags
[src]
impl PartialEq<MemoryFlags> for MemoryFlags
[src]fn eq(&self, other: &MemoryFlags) -> bool
[src]
fn eq(&self, other: &MemoryFlags) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MemoryFlags) -> bool
[src]
fn ne(&self, other: &MemoryFlags) -> bool
[src]This method tests for !=
.
impl PartialOrd<MemoryFlags> for MemoryFlags
[src]
impl PartialOrd<MemoryFlags> for MemoryFlags
[src]fn partial_cmp(&self, other: &MemoryFlags) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &MemoryFlags) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StaticType for MemoryFlags
[src]
impl StaticType for MemoryFlags
[src]fn static_type() -> Type
[src]
fn static_type() -> Type
[src]Returns the type identifier of Self
.
impl Sub<MemoryFlags> for MemoryFlags
[src]
impl Sub<MemoryFlags> for MemoryFlags
[src]fn sub(self, other: MemoryFlags) -> MemoryFlags
[src]
fn sub(self, other: MemoryFlags) -> MemoryFlags
[src]Returns the set difference of the two sets of flags.
type Output = MemoryFlags
type Output = MemoryFlags
The resulting type after applying the -
operator.
impl SubAssign<MemoryFlags> for MemoryFlags
[src]
impl SubAssign<MemoryFlags> for MemoryFlags
[src]fn sub_assign(&mut self, other: MemoryFlags)
[src]
fn sub_assign(&mut self, other: MemoryFlags)
[src]Disables all flags enabled in the set.
impl ToValue for MemoryFlags
[src]
impl ToValue for MemoryFlags
[src]impl UpperHex for MemoryFlags
[src]
impl UpperHex for MemoryFlags
[src]impl ValueType for MemoryFlags
[src]
impl ValueType for MemoryFlags
[src]impl Copy for MemoryFlags
[src]
impl Eq for MemoryFlags
[src]
impl StructuralEq for MemoryFlags
[src]
impl StructuralPartialEq for MemoryFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryFlags
impl Send for MemoryFlags
impl Sync for MemoryFlags
impl Unpin for MemoryFlags
impl UnwindSafe for MemoryFlags
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
pub fn to_send_value(&self) -> SendValue
[src]Returns a SendValue
clone of self
.