pub enum TextAlignOption {
Left,
Center,
Right,
}Expand description
文本对齐配置 - 用于 option 层的序列化
Variants§
Trait Implementations§
Source§impl Clone for TextAlignOption
impl Clone for TextAlignOption
Source§fn clone(&self) -> TextAlignOption
fn clone(&self) -> TextAlignOption
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 moreSource§impl Debug for TextAlignOption
impl Debug for TextAlignOption
Source§impl Default for TextAlignOption
impl Default for TextAlignOption
Source§fn default() -> TextAlignOption
fn default() -> TextAlignOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextAlignOption
impl<'de> Deserialize<'de> for TextAlignOption
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 From<TextAlignOption> for TextAlign
impl From<TextAlignOption> for TextAlign
Source§fn from(option: TextAlignOption) -> Self
fn from(option: TextAlignOption) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextAlignOption
impl PartialEq for TextAlignOption
Source§fn eq(&self, other: &TextAlignOption) -> bool
fn eq(&self, other: &TextAlignOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextAlignOption
impl Serialize for TextAlignOption
impl Copy for TextAlignOption
impl StructuralPartialEq for TextAlignOption
Auto Trait Implementations§
impl Freeze for TextAlignOption
impl RefUnwindSafe for TextAlignOption
impl Send for TextAlignOption
impl Sync for TextAlignOption
impl Unpin for TextAlignOption
impl UnsafeUnpin for TextAlignOption
impl UnwindSafe for TextAlignOption
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