pub struct Alignment {
pub horizontal: HorizontalAlignment,
pub vertical: VerticalAlignment,
pub text_rotation: TextRotation,
pub wrap_text: bool,
pub indent: Option<u8>,
pub shrink_to_fit: bool,
}Expand description
Cell alignment properties
Fields§
§horizontal: HorizontalAlignmentHorizontal alignment
vertical: VerticalAlignmentVertical alignment
text_rotation: TextRotationText rotation
wrap_text: boolWrap text
indent: Option<u8>Indent level
shrink_to_fit: boolShrink to fit
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub fn with_horizontal(self, horizontal: HorizontalAlignment) -> Self
pub fn with_horizontal(self, horizontal: HorizontalAlignment) -> Self
Set horizontal alignment
Sourcepub fn with_vertical(self, vertical: VerticalAlignment) -> Self
pub fn with_vertical(self, vertical: VerticalAlignment) -> Self
Set vertical alignment
Sourcepub fn with_text_rotation(self, rotation: TextRotation) -> Self
pub fn with_text_rotation(self, rotation: TextRotation) -> Self
Set text rotation
Sourcepub fn with_wrap_text(self, wrap: bool) -> Self
pub fn with_wrap_text(self, wrap: bool) -> Self
Set wrap text
Sourcepub fn with_indent(self, indent: u8) -> Self
pub fn with_indent(self, indent: u8) -> Self
Set indent level
Sourcepub fn with_shrink_to_fit(self, shrink: bool) -> Self
pub fn with_shrink_to_fit(self, shrink: bool) -> Self
Set shrink to fit
Trait Implementations§
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§
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