Enum Alignment
pub enum Alignment
Possible alignments returned by Formatter::align
Variants
-
Left Indication that contents should be left-aligned.
-
Right Indication that contents should be right-aligned.
-
Center Indication that contents should be center-aligned.
Trait Implementations
impl Clone for Alignment
fn clone(&self) -> Alignment
impl Copy for Alignment
impl Debug for Alignment
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Alignment
fn assert_fields_are_eq(&self)
impl PartialEq for Alignment
fn eq(&self, other: &Alignment) -> bool
impl StructuralPartialEq for Alignment
impl TrivialClone for Alignment
Auto Trait Implementations
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
Blanket Implementations
impl<T> Any for Alignment
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Alignment
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Alignment
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Alignment
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Alignment
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for Alignment
where
T: Copy + Debug,
impl<T> SizeHint for Alignment
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Alignment
impl<T, U> Into<U> for Alignment
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Alignment
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Alignment
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>