pub enum StrFold {
Upper,
Lower,
}Expand description
Which fold a call asked for.
Both are the ASCII fold, which is the fold the row engine does and the one the standard’s default collation asks for: a letter of the English alphabet changes case and every other byte is left as it stands. It is worth saying what that buys, because it is the whole reason these two are the string library’s easy pair. An ASCII fold never changes a byte’s width, so the answer is exactly as long as the argument, an answer that sat inside its view still sits inside one, and a chunk’s worth of answers needs no more room than the chunk it was made from. A fold with a Unicode table behind it would have none of that.
Variants§
Implementations§
Trait Implementations§
impl Copy for StrFold
impl Eq for StrFold
impl StructuralPartialEq for StrFold
Auto Trait Implementations§
impl Forget for StrFold
impl Freeze for StrFold
impl Move for StrFold
impl RefUnwindSafe for StrFold
impl Send for StrFold
impl Sync for StrFold
impl Unpin for StrFold
impl UnsafeUnpin for StrFold
impl UnwindSafe for StrFold
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