pub enum StringCase {
Lower,
Upper,
Title,
Original,
}Expand description
How a month name was capitalized in the text a date was typed as.
A format code cannot carry casing, so this rides alongside
DateFormat::to_format_code and is lost on a round trip through a
worksheet – as it is in Excel.
Variants§
Lower
All lowercase, as in 22-jun-2026.
Upper
All uppercase, as in 22-JUN-2026.
Title
Leading capital, rest lowercase: 22-Jun-2026. The default.
Original
Mixed in some other way; rendered as the canonical title case.
Trait Implementations§
Source§impl Clone for StringCase
impl Clone for StringCase
Source§fn clone(&self) -> StringCase
fn clone(&self) -> StringCase
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 moreimpl Copy for StringCase
Source§impl Debug for StringCase
impl Debug for StringCase
Source§impl<'de> Deserialize<'de> for StringCase
impl<'de> Deserialize<'de> for StringCase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StringCase
Source§impl PartialEq for StringCase
impl PartialEq for StringCase
Source§impl Serialize for StringCase
impl Serialize for StringCase
impl StructuralPartialEq for StringCase
Auto Trait Implementations§
impl Freeze for StringCase
impl RefUnwindSafe for StringCase
impl Send for StringCase
impl Sync for StringCase
impl Unpin for StringCase
impl UnsafeUnpin for StringCase
impl UnwindSafe for StringCase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.