#[non_exhaustive]#[repr(u8)]pub enum TabAlign {
Left = 0,
Right = 1,
Center = 2,
Decimal = 3,
}Expand description
Tab stop alignment.
Maps to HWPX <hh:tabItem type="...">.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Left = 0
Left-aligned tab.
Right = 1
Right-aligned tab.
Center = 2
Center-aligned tab.
Decimal = 3
Decimal-aligned tab.
Implementations§
Source§impl TabAlign
impl TabAlign
Sourcepub fn to_hwpx_str(self) -> &'static str
pub fn to_hwpx_str(self) -> &'static str
Converts to the HWPX XML attribute string.
Sourcepub fn from_hwpx_str(s: &str) -> Self
pub fn from_hwpx_str(s: &str) -> Self
Parses a HWPX XML attribute string.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TabAlign
impl<'de> Deserialize<'de> for TabAlign
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 JsonSchema for TabAlign
impl JsonSchema for TabAlign
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Copy for TabAlign
impl Eq for TabAlign
impl StructuralPartialEq for TabAlign
Auto Trait Implementations§
impl Freeze for TabAlign
impl RefUnwindSafe for TabAlign
impl Send for TabAlign
impl Sync for TabAlign
impl Unpin for TabAlign
impl UnsafeUnpin for TabAlign
impl UnwindSafe for TabAlign
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.