Enum etop_format::table_formats::CellFormat
source · 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 copy 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
§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
§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
§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
§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 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