Struct gbm::BufferObjectFlags [−][src]
pub struct BufferObjectFlags { /* fields omitted */ }
Flags to indicate the intended use for the buffer - these are passed into
Device::create_buffer_object()
.
Use Device::is_format_supported()
to check if the combination of format
and use flags are supported
Implementations
impl BufferObjectFlags
[src]
impl BufferObjectFlags
[src]pub const SCANOUT: BufferObjectFlags
[src]
pub const SCANOUT: BufferObjectFlags
[src]Buffer is going to be presented to the screen using an API such as KMS
pub const CURSOR: BufferObjectFlags
[src]
pub const CURSOR: BufferObjectFlags
[src]Buffer is going to be used as cursor
pub const CURSOR_64X64: BufferObjectFlags
[src]
👎 Deprecated: Use CURSOR instead
pub const CURSOR_64X64: BufferObjectFlags
[src]Use CURSOR instead
Buffer is going to be used as cursor (deprecated)
pub const RENDERING: BufferObjectFlags
[src]
pub const RENDERING: BufferObjectFlags
[src]Buffer is to be used for rendering - for example it is going to be used as the storage for a color buffer
pub const WRITE: BufferObjectFlags
[src]
pub const WRITE: BufferObjectFlags
[src]Buffer can be used for BufferObject::write()
. This is guaranteed to work
with Self::CURSOR
, but may not work for other combinations.
pub const LINEAR: BufferObjectFlags
[src]
pub const LINEAR: BufferObjectFlags
[src]Buffer is linear, i.e. not tiled.
pub const PROTECTED: BufferObjectFlags
[src]
pub const PROTECTED: BufferObjectFlags
[src]Buffer is protected
pub const fn empty() -> BufferObjectFlags
[src]
pub const fn empty() -> BufferObjectFlags
[src]Returns an empty set of flags
pub const fn all() -> BufferObjectFlags
[src]
pub const fn all() -> BufferObjectFlags
[src]Returns the set containing all flags.
pub fn from_bits(bits: u32) -> Option<BufferObjectFlags>
[src]
pub fn from_bits(bits: u32) -> Option<BufferObjectFlags>
[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) -> BufferObjectFlags
[src]
pub const fn from_bits_truncate(bits: u32) -> BufferObjectFlags
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> BufferObjectFlags
[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> BufferObjectFlags
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: BufferObjectFlags) -> bool
[src]
pub const fn intersects(&self, other: BufferObjectFlags) -> bool
[src]Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: BufferObjectFlags) -> bool
[src]
pub const fn contains(&self, other: BufferObjectFlags) -> bool
[src]Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: BufferObjectFlags)
[src]
pub fn insert(&mut self, other: BufferObjectFlags)
[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: BufferObjectFlags)
[src]
pub fn remove(&mut self, other: BufferObjectFlags)
[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: BufferObjectFlags)
[src]
pub fn toggle(&mut self, other: BufferObjectFlags)
[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: BufferObjectFlags, value: bool)
[src]
pub fn set(&mut self, other: BufferObjectFlags, value: bool)
[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for BufferObjectFlags
[src]
impl Binary for BufferObjectFlags
[src]impl BitAnd<BufferObjectFlags> for BufferObjectFlags
[src]
impl BitAnd<BufferObjectFlags> for BufferObjectFlags
[src]fn bitand(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]
fn bitand(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]Returns the intersection between the two sets of flags.
type Output = BufferObjectFlags
type Output = BufferObjectFlags
The resulting type after applying the &
operator.
impl BitAndAssign<BufferObjectFlags> for BufferObjectFlags
[src]
impl BitAndAssign<BufferObjectFlags> for BufferObjectFlags
[src]fn bitand_assign(&mut self, other: BufferObjectFlags)
[src]
fn bitand_assign(&mut self, other: BufferObjectFlags)
[src]Disables all flags disabled in the set.
impl BitOr<BufferObjectFlags> for BufferObjectFlags
[src]
impl BitOr<BufferObjectFlags> for BufferObjectFlags
[src]fn bitor(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]
fn bitor(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]Returns the union of the two sets of flags.
type Output = BufferObjectFlags
type Output = BufferObjectFlags
The resulting type after applying the |
operator.
impl BitOrAssign<BufferObjectFlags> for BufferObjectFlags
[src]
impl BitOrAssign<BufferObjectFlags> for BufferObjectFlags
[src]fn bitor_assign(&mut self, other: BufferObjectFlags)
[src]
fn bitor_assign(&mut self, other: BufferObjectFlags)
[src]Adds the set of flags.
impl BitXor<BufferObjectFlags> for BufferObjectFlags
[src]
impl BitXor<BufferObjectFlags> for BufferObjectFlags
[src]fn bitxor(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]
fn bitxor(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]Returns the left flags, but with all the right flags toggled.
type Output = BufferObjectFlags
type Output = BufferObjectFlags
The resulting type after applying the ^
operator.
impl BitXorAssign<BufferObjectFlags> for BufferObjectFlags
[src]
impl BitXorAssign<BufferObjectFlags> for BufferObjectFlags
[src]fn bitxor_assign(&mut self, other: BufferObjectFlags)
[src]
fn bitxor_assign(&mut self, other: BufferObjectFlags)
[src]Toggles the set of flags.
impl Clone for BufferObjectFlags
[src]
impl Clone for BufferObjectFlags
[src]fn clone(&self) -> BufferObjectFlags
[src]
fn clone(&self) -> BufferObjectFlags
[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 BufferObjectFlags
[src]
impl Debug for BufferObjectFlags
[src]impl Extend<BufferObjectFlags> for BufferObjectFlags
[src]
impl Extend<BufferObjectFlags> for BufferObjectFlags
[src]fn extend<T: IntoIterator<Item = BufferObjectFlags>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = BufferObjectFlags>>(&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<BufferObjectFlags> for BufferObjectFlags
[src]
impl FromIterator<BufferObjectFlags> for BufferObjectFlags
[src]fn from_iter<T: IntoIterator<Item = BufferObjectFlags>>(
iterator: T
) -> BufferObjectFlags
[src]
fn from_iter<T: IntoIterator<Item = BufferObjectFlags>>(
iterator: T
) -> BufferObjectFlags
[src]Creates a value from an iterator. Read more
impl Hash for BufferObjectFlags
[src]
impl Hash for BufferObjectFlags
[src]impl LowerHex for BufferObjectFlags
[src]
impl LowerHex for BufferObjectFlags
[src]impl Not for BufferObjectFlags
[src]
impl Not for BufferObjectFlags
[src]fn not(self) -> BufferObjectFlags
[src]
fn not(self) -> BufferObjectFlags
[src]Returns the complement of this set of flags.
type Output = BufferObjectFlags
type Output = BufferObjectFlags
The resulting type after applying the !
operator.
impl Octal for BufferObjectFlags
[src]
impl Octal for BufferObjectFlags
[src]impl Ord for BufferObjectFlags
[src]
impl Ord for BufferObjectFlags
[src]impl PartialEq<BufferObjectFlags> for BufferObjectFlags
[src]
impl PartialEq<BufferObjectFlags> for BufferObjectFlags
[src]fn eq(&self, other: &BufferObjectFlags) -> bool
[src]
fn eq(&self, other: &BufferObjectFlags) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &BufferObjectFlags) -> bool
[src]
fn ne(&self, other: &BufferObjectFlags) -> bool
[src]This method tests for !=
.
impl PartialOrd<BufferObjectFlags> for BufferObjectFlags
[src]
impl PartialOrd<BufferObjectFlags> for BufferObjectFlags
[src]fn partial_cmp(&self, other: &BufferObjectFlags) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &BufferObjectFlags) -> 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 Sub<BufferObjectFlags> for BufferObjectFlags
[src]
impl Sub<BufferObjectFlags> for BufferObjectFlags
[src]fn sub(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]
fn sub(self, other: BufferObjectFlags) -> BufferObjectFlags
[src]Returns the set difference of the two sets of flags.
type Output = BufferObjectFlags
type Output = BufferObjectFlags
The resulting type after applying the -
operator.
impl SubAssign<BufferObjectFlags> for BufferObjectFlags
[src]
impl SubAssign<BufferObjectFlags> for BufferObjectFlags
[src]fn sub_assign(&mut self, other: BufferObjectFlags)
[src]
fn sub_assign(&mut self, other: BufferObjectFlags)
[src]Disables all flags enabled in the set.
impl UpperHex for BufferObjectFlags
[src]
impl UpperHex for BufferObjectFlags
[src]impl Copy for BufferObjectFlags
[src]
impl Eq for BufferObjectFlags
[src]
impl StructuralEq for BufferObjectFlags
[src]
impl StructuralPartialEq for BufferObjectFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for BufferObjectFlags
impl Send for BufferObjectFlags
impl Sync for BufferObjectFlags
impl Unpin for BufferObjectFlags
impl UnwindSafe for BufferObjectFlags
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> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. 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