Enum webrender_api::RasterSpace
source · #[repr(u8)]pub enum RasterSpace {
Local(f32),
Screen,
}
Expand description
Configure whether the contents of a stacking context should be rasterized in local space or screen space. Local space rasterized pictures are typically used when we want to cache the output, and performance is important. Note that this is a performance hint only, which WR may choose to ignore.
Variants§
Implementations§
source§impl RasterSpace
impl RasterSpace
pub fn local_scale(self) -> Option<f32>
Trait Implementations§
source§impl Clone for RasterSpace
impl Clone for RasterSpace
source§fn clone(&self) -> RasterSpace
fn clone(&self) -> RasterSpace
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 RasterSpace
impl Debug for RasterSpace
source§impl Default for RasterSpace
impl Default for RasterSpace
source§impl<'de> Deserialize<'de> for RasterSpace
impl<'de> Deserialize<'de> for RasterSpace
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RasterSpace
impl Hash for RasterSpace
source§impl MallocSizeOf for RasterSpace
impl MallocSizeOf for RasterSpace
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for RasterSpace
impl PartialEq for RasterSpace
source§impl Peek for RasterSpace
impl Peek for RasterSpace
source§impl Poke for RasterSpace
impl Poke for RasterSpace
source§impl Serialize for RasterSpace
impl Serialize for RasterSpace
impl Copy for RasterSpace
impl Eq for RasterSpace
impl StructuralPartialEq for RasterSpace
Auto Trait Implementations§
impl Freeze for RasterSpace
impl RefUnwindSafe for RasterSpace
impl Send for RasterSpace
impl Sync for RasterSpace
impl Unpin for RasterSpace
impl UnwindSafe for RasterSpace
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)