Enum libnotcurses_sys::NcAlign
source · #[repr(u32)]pub enum NcAlign {
Unaligned = 0,
Left = 1,
Center = 2,
Right = 3,
}
Expand description
Alignment within a plane or terminal.
Left
|Right
justified (horizontally).Top
|Down
justified (vertically).Centered
(both horizontally & vertically).Unaligned
for an invalid state.
§Default
Variants§
Unaligned = 0
Anything unaligned wont be rendered.
Left = 1
Left (==Top
) alignment.
Center = 2
Center alignment.
Right = 3
Right (==Bottom
) alignment.
Implementations§
Trait Implementations§
source§impl From<NcAlign> for NcAlign_u32
impl From<NcAlign> for NcAlign_u32
source§impl From<u32> for NcAlign
impl From<u32> for NcAlign
source§fn from(align: NcAlign_u32) -> Self
fn from(align: NcAlign_u32) -> Self
Converts to this type from the input type.
source§impl PartialEq for NcAlign
impl PartialEq for NcAlign
impl Copy for NcAlign
impl Eq for NcAlign
impl StructuralPartialEq for NcAlign
Auto Trait Implementations§
impl RefUnwindSafe for NcAlign
impl Send for NcAlign
impl Sync for NcAlign
impl Unpin for NcAlign
impl UnwindSafe for NcAlign
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