Enum Alignment

pub enum Alignment

Defines the alignment for padding operations.

Variants

Left
Center
Right

Trait Implementations

impl Clone for Alignment

fn clone(&self) -> Self

impl Copy for Alignment

impl Debug for Alignment

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Alignment

impl PartialEq for Alignment

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq 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) -> T

Returns the argument unchanged.

impl<T> ToOwned for Alignment where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Alignment where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Alignment where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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>