pub struct CaseConversion { /* private fields */ }Expand description
A reusable case-conversion descriptor.
Implementations§
Source§impl CaseConversion
impl CaseConversion
Sourcepub const fn new(source: TextCase, target: TextCase) -> CaseConversion
pub const fn new(source: TextCase, target: TextCase) -> CaseConversion
Creates a new conversion descriptor.
Trait Implementations§
Source§impl Clone for CaseConversion
impl Clone for CaseConversion
Source§fn clone(&self) -> CaseConversion
fn clone(&self) -> CaseConversion
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 CaseConversion
impl Debug for CaseConversion
Source§impl PartialEq for CaseConversion
impl PartialEq for CaseConversion
Source§fn eq(&self, other: &CaseConversion) -> bool
fn eq(&self, other: &CaseConversion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CaseConversion
impl Eq for CaseConversion
impl StructuralPartialEq for CaseConversion
Auto Trait Implementations§
impl Freeze for CaseConversion
impl RefUnwindSafe for CaseConversion
impl Send for CaseConversion
impl Sync for CaseConversion
impl Unpin for CaseConversion
impl UnsafeUnpin for CaseConversion
impl UnwindSafe for CaseConversion
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