pub enum ColorExtensionRef {
Static(&'static dyn ColorExtension),
Shared(Rc<dyn ColorExtension>),
}Expand description
How an AnyColor holds its extension: a const table entry, or an object built at
run time (a WidgetStateColor.resolveWith closure, a resolved dynamic color).
Variants§
Static(&'static dyn ColorExtension)
Trait Implementations§
Source§impl Clone for ColorExtensionRef
impl Clone for ColorExtensionRef
Source§fn clone(&self) -> ColorExtensionRef
fn clone(&self) -> ColorExtensionRef
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ColorExtensionRef
impl !Send for ColorExtensionRef
impl !Sync for ColorExtensionRef
impl !UnwindSafe for ColorExtensionRef
impl Forget for ColorExtensionRef
impl Freeze for ColorExtensionRefwhere
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
impl Move for ColorExtensionRef
impl Unpin for ColorExtensionRef
impl UnsafeUnpin for ColorExtensionRefwhere
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
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