#[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