pub enum CharacterLength {
IntegerLength {
length: u64,
unit: Option<CharLengthUnits>,
},
Max,
}Expand description
Information about character length, including length and possibly unit.
Variants§
IntegerLength
Fields
§
unit: Option<CharLengthUnits>Optional unit. If not informed, the ANSI handles it as CHARACTERS implicitly
Max
VARCHAR(MAX) or NVARCHAR(MAX), used in T-SQL (Microsoft SQL Server)
Trait Implementations§
Source§impl AsNodeKey for CharacterLength
impl AsNodeKey for CharacterLength
fn as_node_key(&self) -> NodeKey<'_>
Source§impl Clone for CharacterLength
impl Clone for CharacterLength
Source§fn clone(&self) -> CharacterLength
fn clone(&self) -> CharacterLength
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 Debug for CharacterLength
impl Debug for CharacterLength
Source§impl Display for CharacterLength
impl Display for CharacterLength
Source§impl Hash for CharacterLength
impl Hash for CharacterLength
Source§impl Ord for CharacterLength
impl Ord for CharacterLength
Source§fn cmp(&self, other: &CharacterLength) -> Ordering
fn cmp(&self, other: &CharacterLength) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CharacterLength
impl PartialEq for CharacterLength
Source§impl PartialOrd for CharacterLength
impl PartialOrd for CharacterLength
Source§impl<'ast> Transformable<'ast> for CharacterLength
impl<'ast> Transformable<'ast> for CharacterLength
Source§impl Visitable for CharacterLength
impl Visitable for CharacterLength
Source§fn accept<'ast, V: Visitor<'ast>>(
&'ast self,
visitor: &mut V,
) -> ControlFlow<Break<V::Error>>
fn accept<'ast, V: Visitor<'ast>>( &'ast self, visitor: &mut V, ) -> ControlFlow<Break<V::Error>>
Accepts a borrowed
Visitor and traverses the AST starting at self invoking Visitor::enter and
Visitor::exit as nodes are entered and exiting respectively.Source§fn downcast_ref<Target: Visitable>(&self) -> Option<&Target>
fn downcast_ref<Target: Visitable>(&self) -> Option<&Target>
Tries to downcast
self as &Target.Source§fn downcast_mut<Target: Visitable>(&mut self) -> Option<&mut Target>
fn downcast_mut<Target: Visitable>(&mut self) -> Option<&mut Target>
Tries to downcast
self as &mut Target.impl Copy for CharacterLength
impl Eq for CharacterLength
impl StructuralPartialEq for CharacterLength
Auto Trait Implementations§
impl Freeze for CharacterLength
impl RefUnwindSafe for CharacterLength
impl Send for CharacterLength
impl Sync for CharacterLength
impl Unpin for CharacterLength
impl UnwindSafe for CharacterLength
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