pub struct NumberFormat { /* private fields */ }Expand description
A classified Excel number-format code.
Implementations§
Source§impl NumberFormat
impl NumberFormat
Sourcepub fn parse(code: &str) -> Self
pub fn parse(code: &str) -> Self
Classify a format code. Parsing is total; unsupported codes are Other.
pub fn class(&self) -> &FormatClass
pub fn code(&self) -> &str
Sourcepub fn builtin(id: u16) -> Option<&'static NumberFormat>
pub fn builtin(id: u16) -> Option<&'static NumberFormat>
Return an OOXML built-in number format (ids 0 through 49).
Trait Implementations§
Source§impl Clone for NumberFormat
impl Clone for NumberFormat
Source§fn clone(&self) -> NumberFormat
fn clone(&self) -> NumberFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NumberFormat
impl Debug for NumberFormat
impl Eq for NumberFormat
Source§impl PartialEq for NumberFormat
impl PartialEq for NumberFormat
impl StructuralPartialEq for NumberFormat
Auto Trait Implementations§
impl Freeze for NumberFormat
impl RefUnwindSafe for NumberFormat
impl Send for NumberFormat
impl Sync for NumberFormat
impl Unpin for NumberFormat
impl UnsafeUnpin for NumberFormat
impl UnwindSafe for NumberFormat
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