Enum koto_parser::StringAlignment
source · #[repr(u8)]pub enum StringAlignment {
Default = 0,
Left = 1,
Center = 2,
Right = 3,
}
Expand description
Alignment options for formatted strings
Variants§
Default = 0
Default alignment is right-aligned for numbers, left-aligned otherwise
Left = 1
Center = 2
Right = 3
Trait Implementations§
source§impl Clone for StringAlignment
impl Clone for StringAlignment
source§fn clone(&self) -> StringAlignment
fn clone(&self) -> StringAlignment
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 StringAlignment
impl Debug for StringAlignment
source§impl Default for StringAlignment
impl Default for StringAlignment
source§fn default() -> StringAlignment
fn default() -> StringAlignment
Returns the “default value” for a type. Read more
source§impl PartialEq for StringAlignment
impl PartialEq for StringAlignment
source§fn eq(&self, other: &StringAlignment) -> bool
fn eq(&self, other: &StringAlignment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StringAlignment
impl Eq for StringAlignment
impl StructuralPartialEq for StringAlignment
Auto Trait Implementations§
impl Freeze for StringAlignment
impl RefUnwindSafe for StringAlignment
impl Send for StringAlignment
impl Sync for StringAlignment
impl Unpin for StringAlignment
impl UnwindSafe for StringAlignment
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