Struct umya_spreadsheet::structs::NumberingFormat
source · [−]pub struct NumberingFormat { /* private fields */ }
Implementations
sourceimpl NumberingFormat
impl NumberingFormat
pub const FORMAT_GENERAL: &'static str
pub const FORMAT_TEXT: &'static str
pub const FORMAT_NUMBER: &'static str
pub const FORMAT_NUMBER_00: &'static str
pub const FORMAT_NUMBER_COMMA_SEPARATED1: &'static str
pub const FORMAT_NUMBER_COMMA_SEPARATED2: &'static str
pub const FORMAT_PERCENTAGE: &'static str
pub const FORMAT_PERCENTAGE_00: &'static str
pub const FORMAT_DATE_YYYYMMDD2: &'static str
pub const FORMAT_DATE_YYYYMMDD: &'static str
pub const FORMAT_DATE_DDMMYYYY: &'static str
pub const FORMAT_DATE_DDMMYYYYSLASH: &'static str
pub const FORMAT_DATE_DMYSLASH: &'static str
pub const FORMAT_DATE_DMYMINUS: &'static str
pub const FORMAT_DATE_DMMINUS: &'static str
pub const FORMAT_DATE_MYMINUS: &'static str
pub const FORMAT_DATE_XLSX14: &'static str
pub const FORMAT_DATE_XLSX15: &'static str
pub const FORMAT_DATE_XLSX16: &'static str
pub const FORMAT_DATE_XLSX17: &'static str
pub const FORMAT_DATE_XLSX22: &'static str
pub const FORMAT_DATE_DATETIME: &'static str
pub const FORMAT_DATE_TIME1: &'static str
pub const FORMAT_DATE_TIME2: &'static str
pub const FORMAT_DATE_TIME3: &'static str
pub const FORMAT_DATE_TIME4: &'static str
pub const FORMAT_DATE_TIME5: &'static str
pub const FORMAT_DATE_TIME6: &'static str
pub const FORMAT_DATE_TIME8: &'static str
pub const FORMAT_DATE_YYYYMMDDSLASH: &'static str
pub const FORMAT_CURRENCY_USD_SIMPLE: &'static str
pub const FORMAT_CURRENCY_USD: &'static str
pub const FORMAT_CURRENCY_EUR_SIMPLE: &'static str
pub const FORMAT_CURRENCY_EUR: &'static str
pub const FORMAT_ACCOUNTING_USD: &'static str
pub const FORMAT_ACCOUNTING_EUR: &'static str
pub fn get_number_format_id(&self) -> &u32
pub fn set_number_format_id(&mut self, value: u32) -> &mut Self
sourcepub fn set_format_code<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_format_code<S: Into<String>>(&mut self, value: S) -> &mut Self
Set the format code.
Arguments
value
- format code. (umya_spreadsheet::NumberingFormat)
Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(0);
let _ = worksheet.get_style_mut("C30")
.get_number_format_mut()
.set_format_code(umya_spreadsheet::NumberingFormat::FORMAT_DATE_XLSX17);
pub fn get_format_code(&self) -> &str
Trait Implementations
sourceimpl Clone for NumberingFormat
impl Clone for NumberingFormat
sourcefn clone(&self) -> NumberingFormat
fn clone(&self) -> NumberingFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NumberingFormat
impl Debug for NumberingFormat
sourceimpl Default for NumberingFormat
impl Default for NumberingFormat
sourceimpl Ord for NumberingFormat
impl Ord for NumberingFormat
sourceimpl PartialEq<NumberingFormat> for NumberingFormat
impl PartialEq<NumberingFormat> for NumberingFormat
sourcefn eq(&self, other: &NumberingFormat) -> bool
fn eq(&self, other: &NumberingFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NumberingFormat) -> bool
fn ne(&self, other: &NumberingFormat) -> bool
This method tests for !=
.
sourceimpl PartialOrd<NumberingFormat> for NumberingFormat
impl PartialOrd<NumberingFormat> for NumberingFormat
sourcefn partial_cmp(&self, other: &NumberingFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &NumberingFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for NumberingFormat
impl StructuralEq for NumberingFormat
impl StructuralPartialEq for NumberingFormat
Auto Trait Implementations
impl RefUnwindSafe for NumberingFormat
impl Send for NumberingFormat
impl Sync for NumberingFormat
impl Unpin for NumberingFormat
impl UnwindSafe for NumberingFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more