#[non_exhaustive]pub enum VarcharUnit {
Characters,
Bytes,
}Expand description
How an engine counts a varchar’s declared length.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Characters
In characters, whatever each takes to store.
Bytes
In bytes: a character outside ASCII takes more than one.
Implementations§
Trait Implementations§
Source§impl Clone for VarcharUnit
impl Clone for VarcharUnit
impl Copy for VarcharUnit
Source§impl Debug for VarcharUnit
impl Debug for VarcharUnit
impl Eq for VarcharUnit
Source§impl PartialEq for VarcharUnit
impl PartialEq for VarcharUnit
impl StructuralPartialEq for VarcharUnit
Auto Trait Implementations§
impl Forget for VarcharUnit
impl Freeze for VarcharUnit
impl Move for VarcharUnit
impl RefUnwindSafe for VarcharUnit
impl Send for VarcharUnit
impl Sync for VarcharUnit
impl Unpin for VarcharUnit
impl UnsafeUnpin for VarcharUnit
impl UnwindSafe for VarcharUnit
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