pub enum CanvasCaching {
DynamicPerFrame,
RetainedStatic,
}Expand description
Caching strategy controlling whether a NodeKind::Canvas repaints every frame or can be retained in PaintFragmentCache.
Variants§
DynamicPerFrame
Dynamic canvas repainted on every display-list pass (e.g. live 2D/3D viewports or animated charts).
RetainedStatic
Static vector canvas whose emitted draw commands remain stable for a given style and bounds (e.g. icons and brand emblems).
Trait Implementations§
Source§impl Clone for CanvasCaching
impl Clone for CanvasCaching
Source§fn clone(&self) -> CanvasCaching
fn clone(&self) -> CanvasCaching
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CanvasCaching
Source§impl Debug for CanvasCaching
impl Debug for CanvasCaching
Source§impl Default for CanvasCaching
impl Default for CanvasCaching
Source§fn default() -> CanvasCaching
fn default() -> CanvasCaching
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CanvasCaching
impl<'de> Deserialize<'de> for CanvasCaching
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CanvasCaching, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CanvasCaching, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CanvasCaching
Source§impl Hash for CanvasCaching
impl Hash for CanvasCaching
Source§impl PartialEq for CanvasCaching
impl PartialEq for CanvasCaching
Source§impl Serialize for CanvasCaching
impl Serialize for CanvasCaching
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CanvasCaching
Auto Trait Implementations§
impl Forget for CanvasCaching
impl Freeze for CanvasCaching
impl Move for CanvasCaching
impl RefUnwindSafe for CanvasCaching
impl Send for CanvasCaching
impl Sync for CanvasCaching
impl Unpin for CanvasCaching
impl UnsafeUnpin for CanvasCaching
impl UnwindSafe for CanvasCaching
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