pub enum AttrValue {
Show 19 variants
Alignment(Alignment),
Borders(Borders),
Color(Color),
Dataset(Dataset),
Direction(Direction),
Flag(bool),
InputType(InputType),
Layout(Layout),
Length(usize),
Number(isize),
Shape(Shape),
Size(u16),
String(String),
Style(Style),
Table(Table),
Text(TextSpan),
TextModifiers(TextModifiers),
Title((String, Alignment)),
Payload(PropPayload),
}
Expand description
Describes a single attribute in the component properties.
Variants§
Alignment(Alignment)
Borders(Borders)
Color(Color)
Dataset(Dataset)
Direction(Direction)
Flag(bool)
InputType(InputType)
Layout(Layout)
Length(usize)
Number(isize)
Shape(Shape)
Size(u16)
String(String)
Style(Style)
Table(Table)
Text(TextSpan)
TextModifiers(TextModifiers)
Title((String, Alignment))
Payload(PropPayload)
User defined complex attribute value
Implementations§
source§impl AttrValue
impl AttrValue
pub fn unwrap_alignment(self) -> Alignment
pub fn unwrap_borders(self) -> Borders
pub fn unwrap_color(self) -> Color
pub fn unwrap_dataset(self) -> Dataset
pub fn unwrap_direction(self) -> Direction
pub fn unwrap_flag(self) -> bool
pub fn unwrap_input_type(self) -> InputType
pub fn unwrap_layout(self) -> Layout
pub fn unwrap_length(self) -> usize
pub fn unwrap_number(self) -> isize
pub fn unwrap_shape(self) -> Shape
pub fn unwrap_size(self) -> u16
pub fn unwrap_string(self) -> String
pub fn unwrap_style(self) -> Style
pub fn unwrap_table(self) -> Table
pub fn unwrap_text(self) -> TextSpan
pub fn unwrap_text_modifiers(self) -> TextModifiers
pub fn unwrap_title(self) -> (String, Alignment)
pub fn unwrap_payload(self) -> PropPayload
Trait Implementations§
source§impl PartialEq for AttrValue
impl PartialEq for AttrValue
impl StructuralPartialEq for AttrValue
Auto Trait Implementations§
impl RefUnwindSafe for AttrValue
impl Send for AttrValue
impl Sync for AttrValue
impl Unpin for AttrValue
impl UnwindSafe for AttrValue
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