pub enum TextVariant {
H1,
H2,
H3,
H4,
H5,
Caption,
Body,
}Expand description
文本样式变体
Variants§
Trait Implementations§
Source§impl Clone for TextVariant
impl Clone for TextVariant
Source§fn clone(&self) -> TextVariant
fn clone(&self) -> TextVariant
Returns a duplicate 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 TextVariant
impl Debug for TextVariant
Source§impl<'de> Deserialize<'de> for TextVariant
impl<'de> Deserialize<'de> for TextVariant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextVariant
impl PartialEq for TextVariant
Source§impl Serialize for TextVariant
impl Serialize for TextVariant
impl StructuralPartialEq for TextVariant
Auto Trait Implementations§
impl Freeze for TextVariant
impl RefUnwindSafe for TextVariant
impl Send for TextVariant
impl Sync for TextVariant
impl Unpin for TextVariant
impl UnsafeUnpin for TextVariant
impl UnwindSafe for TextVariant
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