pub enum CellFormat {
Number(NumberFormat),
Binary(BinaryFormat),
String(StringFormat),
Bool(BoolFormat),
}Expand description
cell format
Variants§
Number(NumberFormat)
number format
Binary(BinaryFormat)
binary format
String(StringFormat)
string format
Bool(BoolFormat)
bool format
Implementations§
Source§impl CellFormat
impl CellFormat
Sourcepub fn min_width(self, min_width: usize) -> CellFormat
pub fn min_width(self, min_width: usize) -> CellFormat
set min width
Sourcepub fn max_width(self, max_width: usize) -> CellFormat
pub fn max_width(self, max_width: usize) -> CellFormat
set max width
Sourcepub fn get_min_width(&self) -> Option<usize>
pub fn get_min_width(&self) -> Option<usize>
get min width
Sourcepub fn get_max_width(&self) -> Option<usize>
pub fn get_max_width(&self) -> Option<usize>
get max width
Trait Implementations§
Source§impl Clone for CellFormat
impl Clone for CellFormat
Source§fn clone(&self) -> CellFormat
fn clone(&self) -> CellFormat
Returns a duplicate 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 CellFormat
impl Debug for CellFormat
Source§impl TryInto<BinaryFormat> for CellFormat
impl TryInto<BinaryFormat> for CellFormat
Source§type Error = FormatError
type Error = FormatError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<BinaryFormat, FormatError>
fn try_into(self) -> Result<BinaryFormat, FormatError>
Performs the conversion.
Source§impl TryInto<BoolFormat> for CellFormat
impl TryInto<BoolFormat> for CellFormat
Source§type Error = FormatError
type Error = FormatError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<BoolFormat, FormatError>
fn try_into(self) -> Result<BoolFormat, FormatError>
Performs the conversion.
Source§impl TryInto<NumberFormat> for CellFormat
impl TryInto<NumberFormat> for CellFormat
Source§type Error = FormatError
type Error = FormatError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<NumberFormat, FormatError>
fn try_into(self) -> Result<NumberFormat, FormatError>
Performs the conversion.
Source§impl TryInto<StringFormat> for CellFormat
impl TryInto<StringFormat> for CellFormat
Source§type Error = FormatError
type Error = FormatError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<StringFormat, FormatError>
fn try_into(self) -> Result<StringFormat, FormatError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CellFormat
impl RefUnwindSafe for CellFormat
impl Send for CellFormat
impl Sync for CellFormat
impl Unpin for CellFormat
impl UnwindSafe for CellFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more