pub struct ColumnDefinition<'bump> {
pub col_name: Name<'bump>,
pub col_type: Option<Type<'bump>>,
pub constraints: &'bump [NamedColumnConstraint<'bump>],
pub flags: ColFlags,
}Expand description
Table column definition
Fields§
§col_name: Name<'bump>column name
col_type: Option<Type<'bump>>column type
constraints: &'bump [NamedColumnConstraint<'bump>]column constraints
flags: ColFlagscolumn flags
Implementations§
Source§impl<'bump> ColumnDefinition<'bump>
impl<'bump> ColumnDefinition<'bump>
Sourcepub fn new(
col_name: Name<'bump>,
col_type: Option<Type<'bump>>,
constraints: Vec<'bump, NamedColumnConstraint<'bump>>,
b: &'bump Bump,
) -> Result<Self, ParserError>
pub fn new( col_name: Name<'bump>, col_type: Option<Type<'bump>>, constraints: Vec<'bump, NamedColumnConstraint<'bump>>, b: &'bump Bump, ) -> Result<Self, ParserError>
Constructor
Sourcepub fn add_column(
columns: &mut Vec<'bump, Self>,
cd: Self,
) -> Result<(), ParserError>
pub fn add_column( columns: &mut Vec<'bump, Self>, cd: Self, ) -> Result<(), ParserError>
Collector
Trait Implementations§
Source§impl<'bump> Debug for ColumnDefinition<'bump>
impl<'bump> Debug for ColumnDefinition<'bump>
impl<'bump> Eq for ColumnDefinition<'bump>
Source§impl<'bump> PartialEq for ColumnDefinition<'bump>
impl<'bump> PartialEq for ColumnDefinition<'bump>
Source§fn eq(&self, other: &ColumnDefinition<'bump>) -> bool
fn eq(&self, other: &ColumnDefinition<'bump>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'bump> StructuralPartialEq for ColumnDefinition<'bump>
Auto Trait Implementations§
impl<'bump> !RefUnwindSafe for ColumnDefinition<'bump>
impl<'bump> !Send for ColumnDefinition<'bump>
impl<'bump> !Sync for ColumnDefinition<'bump>
impl<'bump> !UnwindSafe for ColumnDefinition<'bump>
impl<'bump> Freeze for ColumnDefinition<'bump>
impl<'bump> Unpin for ColumnDefinition<'bump>
impl<'bump> UnsafeUnpin for ColumnDefinition<'bump>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.