Enum ori_core::StyleAttributeValue
source · pub enum StyleAttributeValue {
String(String),
Enum(String),
Unit(Unit),
Color(Color),
}
Expand description
A Style
attribute value.
Variants§
String(String)
A string value, eg. "hello"
.
Enum(String)
An enum value, eg. red
or space-between
.
Unit(Unit)
A length value, eg. 10px
or 10pt
.
Color(Color)
A color value, eg. #ff0000
.
Implementations§
Trait Implementations§
source§impl Clone for StyleAttributeValue
impl Clone for StyleAttributeValue
source§fn clone(&self) -> StyleAttributeValue
fn clone(&self) -> StyleAttributeValue
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 StyleAttributeValue
impl Debug for StyleAttributeValue
source§impl Display for StyleAttributeValue
impl Display for StyleAttributeValue
source§impl<T> From<&ReadSignal<T>> for StyleAttributeValuewhere
T: Into<StyleAttributeValue> + Clone,
impl<T> From<&ReadSignal<T>> for StyleAttributeValuewhere T: Into<StyleAttributeValue> + Clone,
source§fn from(value: &ReadSignal<T>) -> Self
fn from(value: &ReadSignal<T>) -> Self
Converts to this type from the input type.
source§impl From<&str> for StyleAttributeValue
impl From<&str> for StyleAttributeValue
source§impl From<Color> for StyleAttributeValue
impl From<Color> for StyleAttributeValue
source§impl From<String> for StyleAttributeValue
impl From<String> for StyleAttributeValue
source§impl<T: StyleAttributeEnum> From<T> for StyleAttributeValue
impl<T: StyleAttributeEnum> From<T> for StyleAttributeValue
source§impl From<Unit> for StyleAttributeValue
impl From<Unit> for StyleAttributeValue
source§impl From<f32> for StyleAttributeValue
impl From<f32> for StyleAttributeValue
source§impl From<f64> for StyleAttributeValue
impl From<f64> for StyleAttributeValue
source§impl From<i128> for StyleAttributeValue
impl From<i128> for StyleAttributeValue
source§impl From<i16> for StyleAttributeValue
impl From<i16> for StyleAttributeValue
source§impl From<i32> for StyleAttributeValue
impl From<i32> for StyleAttributeValue
source§impl From<i64> for StyleAttributeValue
impl From<i64> for StyleAttributeValue
source§impl From<i8> for StyleAttributeValue
impl From<i8> for StyleAttributeValue
source§impl From<isize> for StyleAttributeValue
impl From<isize> for StyleAttributeValue
source§impl From<u128> for StyleAttributeValue
impl From<u128> for StyleAttributeValue
source§impl From<u16> for StyleAttributeValue
impl From<u16> for StyleAttributeValue
source§impl From<u32> for StyleAttributeValue
impl From<u32> for StyleAttributeValue
source§impl From<u64> for StyleAttributeValue
impl From<u64> for StyleAttributeValue
source§impl From<u8> for StyleAttributeValue
impl From<u8> for StyleAttributeValue
Auto Trait Implementations§
impl RefUnwindSafe for StyleAttributeValue
impl Send for StyleAttributeValue
impl Sync for StyleAttributeValue
impl Unpin for StyleAttributeValue
impl UnwindSafe for StyleAttributeValue
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> StyleAttributeBuilder for Twhere
T: Into<StyleAttributeValue>,
impl<T> StyleAttributeBuilder for Twhere T: Into<StyleAttributeValue>,
source§impl<T> Styleable<T> for T
impl<T> Styleable<T> for T
source§fn styled(self) -> Styled<T>
fn styled(self) -> Styled<T>
Converts the
self
into a Styled<Self>
value.source§fn attr_trans(
self,
key: &str,
value: impl Into<StyleAttributeValue>,
transition: impl Into<StyleTransition>
) -> Styled<T>
fn attr_trans( self, key: &str, value: impl Into<StyleAttributeValue>, transition: impl Into<StyleTransition> ) -> Styled<T>
Adds an attribute with a transition.