pub struct RingAnimation {
pub renderer: Renderer,
pub modifier: Modifier,
}Expand description
Complete ring animation state.
Fields§
§renderer: Renderer§modifier: ModifierImplementations§
Source§impl RingAnimation
impl RingAnimation
pub const fn off() -> RingAnimation
pub const fn solid(color: Rgb) -> RingAnimation
pub const fn glow(color: Rgb) -> RingAnimation
Trait Implementations§
Source§impl Clone for RingAnimation
impl Clone for RingAnimation
Source§fn clone(&self) -> RingAnimation
fn clone(&self) -> RingAnimation
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 RingAnimation
Source§impl Debug for RingAnimation
impl Debug for RingAnimation
Source§impl Default for RingAnimation
impl Default for RingAnimation
Source§fn default() -> RingAnimation
fn default() -> RingAnimation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RingAnimation
impl<'de> Deserialize<'de> for RingAnimation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RingAnimation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RingAnimation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RingAnimation
Source§impl PartialEq for RingAnimation
impl PartialEq for RingAnimation
Source§fn eq(&self, other: &RingAnimation) -> bool
fn eq(&self, other: &RingAnimation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RingAnimation
impl Serialize for RingAnimation
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 RingAnimation
Auto Trait Implementations§
impl Freeze for RingAnimation
impl RefUnwindSafe for RingAnimation
impl Send for RingAnimation
impl Sync for RingAnimation
impl Unpin for RingAnimation
impl UnsafeUnpin for RingAnimation
impl UnwindSafe for RingAnimation
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