Enum webrender::composite::TileSurfaceKind
source · pub enum TileSurfaceKind {
Texture,
Color {
color: ColorF,
},
Clear,
}
Expand description
The backing surface kind for a tile. Same as TileSurface
, minus
the texture cache handles, visibility masks etc.
Variants§
Trait Implementations§
source§impl Clone for TileSurfaceKind
impl Clone for TileSurfaceKind
source§fn clone(&self) -> TileSurfaceKind
fn clone(&self) -> TileSurfaceKind
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 From<&TileSurface> for TileSurfaceKind
impl From<&TileSurface> for TileSurfaceKind
source§fn from(surface: &TileSurface) -> Self
fn from(surface: &TileSurface) -> Self
Converts to this type from the input type.
source§impl PartialEq for TileSurfaceKind
impl PartialEq for TileSurfaceKind
source§fn eq(&self, other: &TileSurfaceKind) -> bool
fn eq(&self, other: &TileSurfaceKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TileSurfaceKind
impl Serialize for TileSurfaceKind
impl StructuralPartialEq for TileSurfaceKind
Auto Trait Implementations§
impl Freeze for TileSurfaceKind
impl RefUnwindSafe for TileSurfaceKind
impl Send for TileSurfaceKind
impl Sync for TileSurfaceKind
impl Unpin for TileSurfaceKind
impl UnwindSafe for TileSurfaceKind
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