Struct sqlparser::ast::CharacterLength
source · pub struct CharacterLength {
pub length: u64,
pub unit: Option<CharLengthUnits>,
}
Expand description
Information about character length, including length and possibly unit.
Fields§
§length: u64
Default (if VARYING) or maximum (if not VARYING) length
unit: Option<CharLengthUnits>
Optional unit. If not informed, the ANSI handles it as CHARACTERS implicitly
Trait Implementations§
source§impl Clone for CharacterLength
impl Clone for CharacterLength
source§fn clone(&self) -> CharacterLength
fn clone(&self) -> CharacterLength
Returns a copy 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§fn eq(&self, other: &CharacterLength) -> bool
fn eq(&self, other: &CharacterLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CharacterLength
impl PartialOrd for CharacterLength
source§fn partial_cmp(&self, other: &CharacterLength) -> Option<Ordering>
fn partial_cmp(&self, other: &CharacterLength) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CharacterLength
impl Eq for CharacterLength
impl StructuralEq for CharacterLength
impl StructuralPartialEq for CharacterLength
Auto Trait Implementations§
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