pub struct RenderableType { /* private fields */ }Expand description
Renderable type mask bits.
Implementations§
Source§impl RenderableType
impl RenderableType
Sourcepub const OPENGL: RenderableType
pub const OPENGL: RenderableType
EGL_OPENGL_BIT
Sourcepub const OPENGL_ES: RenderableType
pub const OPENGL_ES: RenderableType
EGL_OPENGL_ES_BIT
Sourcepub const OPENGL_ES2: RenderableType
pub const OPENGL_ES2: RenderableType
EGL_OPENGL_ES2_BIT
Sourcepub const OPENGL_ES3: RenderableType
pub const OPENGL_ES3: RenderableType
EGL_OPENGL_ES3_BIT
Sourcepub const OPENVG: RenderableType
pub const OPENVG: RenderableType
EGL_OPENVG_BIT
Sourcepub const fn empty() -> RenderableType
pub const fn empty() -> RenderableType
Returns an empty set of flags
Sourcepub const fn all() -> RenderableType
pub const fn all() -> RenderableType
Returns the set containing all flags.
Sourcepub fn from_bits(bits: i32) -> Option<RenderableType>
pub fn from_bits(bits: i32) -> Option<RenderableType>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> RenderableType
pub const fn from_bits_truncate(bits: i32) -> RenderableType
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> RenderableType
pub const unsafe fn from_bits_unchecked(bits: i32) -> RenderableType
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: RenderableType) -> bool
pub const fn intersects(&self, other: RenderableType) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: RenderableType) -> bool
pub const fn contains(&self, other: RenderableType) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: RenderableType)
pub fn insert(&mut self, other: RenderableType)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: RenderableType)
pub fn remove(&mut self, other: RenderableType)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: RenderableType)
pub fn toggle(&mut self, other: RenderableType)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: RenderableType, value: bool)
pub fn set(&mut self, other: RenderableType, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for RenderableType
impl Binary for RenderableType
Source§impl BitAnd for RenderableType
impl BitAnd for RenderableType
Source§fn bitand(self, other: RenderableType) -> RenderableType
fn bitand(self, other: RenderableType) -> RenderableType
Returns the intersection between the two sets of flags.
Source§type Output = RenderableType
type Output = RenderableType
& operator.Source§impl BitAndAssign for RenderableType
impl BitAndAssign for RenderableType
Source§fn bitand_assign(&mut self, other: RenderableType)
fn bitand_assign(&mut self, other: RenderableType)
Disables all flags disabled in the set.
Source§impl BitOr for RenderableType
impl BitOr for RenderableType
Source§fn bitor(self, other: RenderableType) -> RenderableType
fn bitor(self, other: RenderableType) -> RenderableType
Returns the union of the two sets of flags.
Source§type Output = RenderableType
type Output = RenderableType
| operator.Source§impl BitOrAssign for RenderableType
impl BitOrAssign for RenderableType
Source§fn bitor_assign(&mut self, other: RenderableType)
fn bitor_assign(&mut self, other: RenderableType)
Adds the set of flags.
Source§impl BitXor for RenderableType
impl BitXor for RenderableType
Source§fn bitxor(self, other: RenderableType) -> RenderableType
fn bitxor(self, other: RenderableType) -> RenderableType
Returns the left flags, but with all the right flags toggled.
Source§type Output = RenderableType
type Output = RenderableType
^ operator.Source§impl BitXorAssign for RenderableType
impl BitXorAssign for RenderableType
Source§fn bitxor_assign(&mut self, other: RenderableType)
fn bitxor_assign(&mut self, other: RenderableType)
Toggles the set of flags.
Source§impl Clone for RenderableType
impl Clone for RenderableType
Source§fn clone(&self) -> RenderableType
fn clone(&self) -> RenderableType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderableType
impl Debug for RenderableType
Source§impl Extend<RenderableType> for RenderableType
impl Extend<RenderableType> for RenderableType
Source§fn extend<T: IntoIterator<Item = RenderableType>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = RenderableType>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<RenderableType> for RenderableType
impl FromIterator<RenderableType> for RenderableType
Source§fn from_iter<T: IntoIterator<Item = RenderableType>>(
iterator: T,
) -> RenderableType
fn from_iter<T: IntoIterator<Item = RenderableType>>( iterator: T, ) -> RenderableType
Source§impl Hash for RenderableType
impl Hash for RenderableType
Source§impl LowerHex for RenderableType
impl LowerHex for RenderableType
Source§impl Not for RenderableType
impl Not for RenderableType
Source§fn not(self) -> RenderableType
fn not(self) -> RenderableType
Returns the complement of this set of flags.
Source§type Output = RenderableType
type Output = RenderableType
! operator.Source§impl Octal for RenderableType
impl Octal for RenderableType
Source§impl Ord for RenderableType
impl Ord for RenderableType
Source§fn cmp(&self, other: &RenderableType) -> Ordering
fn cmp(&self, other: &RenderableType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RenderableType
impl PartialEq for RenderableType
Source§impl PartialOrd for RenderableType
impl PartialOrd for RenderableType
Source§impl Sub for RenderableType
impl Sub for RenderableType
Source§fn sub(self, other: RenderableType) -> RenderableType
fn sub(self, other: RenderableType) -> RenderableType
Returns the set difference of the two sets of flags.
Source§type Output = RenderableType
type Output = RenderableType
- operator.Source§impl SubAssign for RenderableType
impl SubAssign for RenderableType
Source§fn sub_assign(&mut self, other: RenderableType)
fn sub_assign(&mut self, other: RenderableType)
Disables all flags enabled in the set.