pub struct VarLenContext { /* private fields */ }Expand description
The context of a variable-length column: its underlying type, size and optional collation.
Implementations§
Source§impl VarLenContext
impl VarLenContext
Sourcepub fn new(type: VarLenType, len: usize, collation: Option<Collation>) -> Self
pub fn new(type: VarLenType, len: usize, collation: Option<Collation>) -> Self
Create a new variable-length context from a type, length and optional collation.
Sourcepub fn type(&self) -> VarLenType
pub fn type(&self) -> VarLenType
Get the var len context’s r#type.
Trait Implementations§
Source§impl Clone for VarLenContext
impl Clone for VarLenContext
Source§fn clone(&self) -> VarLenContext
fn clone(&self) -> VarLenContext
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 VarLenContext
Source§impl Debug for VarLenContext
impl Debug for VarLenContext
impl Eq for VarLenContext
Source§impl PartialEq for VarLenContext
impl PartialEq for VarLenContext
impl StructuralPartialEq for VarLenContext
Auto Trait Implementations§
impl Freeze for VarLenContext
impl RefUnwindSafe for VarLenContext
impl Send for VarLenContext
impl Sync for VarLenContext
impl Unpin for VarLenContext
impl UnsafeUnpin for VarLenContext
impl UnwindSafe for VarLenContext
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