pub enum CompatColumnRef<'t, 'buf> {
Modern(&'t ModernColumn<'buf>),
Legacy(&'t LegacyColumn<'buf>),
}
Expand description
Wraps a reference to a table column.
Variants§
Modern(&'t ModernColumn<'buf>)
Legacy(&'t LegacyColumn<'buf>)
Implementations§
Source§impl<'t, 'buf> CompatColumnRef<'t, 'buf>
impl<'t, 'buf> CompatColumnRef<'t, 'buf>
Sourcepub fn label(&self) -> Label<'t>
pub fn label(&self) -> Label<'t>
Returns the column’s label. For legacy tables,
this is wrapped into a Label::String
.
pub fn value_type(&self) -> ValueType
Sourcepub fn flags(&self) -> &[LegacyFlag<'buf>]
pub fn flags(&self) -> &[LegacyFlag<'buf>]
Returns the column’s list of defined flags.
For modern tables this always returns &[]
.
Trait Implementations§
Source§impl<'t, 'buf> Clone for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> Clone for CompatColumnRef<'t, 'buf>
Source§fn clone(&self) -> CompatColumnRef<'t, 'buf>
fn clone(&self) -> CompatColumnRef<'t, 'buf>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'t, 'buf> From<&'t LegacyColumn<'buf>> for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> From<&'t LegacyColumn<'buf>> for CompatColumnRef<'t, 'buf>
Source§fn from(value: &'t LegacyColumn<'buf>) -> Self
fn from(value: &'t LegacyColumn<'buf>) -> Self
Converts to this type from the input type.
Source§impl<'t, 'buf> From<&'t ModernColumn<'buf>> for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> From<&'t ModernColumn<'buf>> for CompatColumnRef<'t, 'buf>
Source§fn from(value: &'t ModernColumn<'buf>) -> Self
fn from(value: &'t ModernColumn<'buf>) -> Self
Converts to this type from the input type.
impl<'t, 'buf> Copy for CompatColumnRef<'t, 'buf>
Auto Trait Implementations§
impl<'t, 'buf> Freeze for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> RefUnwindSafe for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> Send for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> Sync for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> Unpin for CompatColumnRef<'t, 'buf>
impl<'t, 'buf> UnwindSafe for CompatColumnRef<'t, 'buf>
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