pub struct Code(/* private fields */);Expand description
A code this version draws, parsed once and kept with its text as written. Two codes are the same exactly when their texts are.
Implementations§
Source§impl Code
impl Code
Sourcepub fn parse(text: &str) -> Result<Code, Unsupported>
pub fn parse(text: &str) -> Result<Code, Unsupported>
A code as written, or what it holds that this version does not draw.
Sourcepub fn builtin(&self) -> Option<u32>
pub fn builtin(&self) -> Option<u32>
The id of the built-in format the code is, where Excel has one that it draws alike in every locale.
Sourcepub fn text(&self, value: &Value) -> Option<String>
pub fn text(&self, value: &Value) -> Option<String>
The text a value draws as under the code, as Excel’s Range.Text
gives it in a column wide enough: a number’s, and a text’s where the
code has a text’s section; None for a text under a code without
one, a truth value, an error and an empty value, each drawn as the
record spells it, and for a number no cell can hold.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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