Struct webrender::picture::SubSliceIndex
source · pub struct SubSliceIndex(u8);
Expand description
Defines which sub-slice (effectively a z-index) a primitive exists on within a picture cache instance.
Tuple Fields§
§0: u8
Implementations§
source§impl SubSliceIndex
impl SubSliceIndex
pub const DEFAULT: SubSliceIndex = _
pub fn new(index: usize) -> Self
sourcepub fn is_primary(&self) -> bool
pub fn is_primary(&self) -> bool
Return true if this sub-slice is the primary sub-slice (for now, we assume that only the primary sub-slice may be opaque and support subpixel AA, for example).
Trait Implementations§
source§impl Clone for SubSliceIndex
impl Clone for SubSliceIndex
source§fn clone(&self) -> SubSliceIndex
fn clone(&self) -> SubSliceIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SubSliceIndex
impl Debug for SubSliceIndex
source§impl Hash for SubSliceIndex
impl Hash for SubSliceIndex
source§impl PartialEq for SubSliceIndex
impl PartialEq for SubSliceIndex
source§fn eq(&self, other: &SubSliceIndex) -> bool
fn eq(&self, other: &SubSliceIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SubSliceIndex
impl Serialize for SubSliceIndex
impl Copy for SubSliceIndex
impl Eq for SubSliceIndex
impl StructuralPartialEq for SubSliceIndex
Auto Trait Implementations§
impl Freeze for SubSliceIndex
impl RefUnwindSafe for SubSliceIndex
impl Send for SubSliceIndex
impl Sync for SubSliceIndex
impl Unpin for SubSliceIndex
impl UnwindSafe for SubSliceIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more