Type Alias ColumnId

Source
pub(crate) type ColumnId = ColumnId;

Aliased Type§

struct ColumnId(/* private fields */);

Implementations

§

impl ColumnId

pub const fn get_id(&self) -> i32

pub const fn next(self) -> ColumnId

Returns the subsequent column id.

pub fn apply_delta_if_not_row_id(&mut self, delta: i32)

§

impl ColumnId

pub const fn new(column_id: i32) -> ColumnId

pub const fn placeholder() -> ColumnId

Sometimes the id field is filled later, we use this value for better debugging.

pub const fn first_user_column() -> ColumnId

Trait Implementations

§

impl Clone for ColumnId

§

fn clone(&self) -> ColumnId

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ColumnId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ColumnId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&i32> for ColumnId

§

fn from(column_id: &i32) -> ColumnId

Converts to this type from the input type.
§

impl From<i32> for ColumnId

§

fn from(column_id: i32) -> ColumnId

Converts to this type from the input type.
§

impl Hash for ColumnId

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for ColumnId

§

fn cmp(&self, other: &ColumnId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for ColumnId

§

fn eq(&self, other: &ColumnId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for ColumnId

§

fn partial_cmp(&self, other: &ColumnId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PkColumn for ColumnId

Source§

fn is(&self, column: &ColumnCatalog) -> bool

§

impl Copy for ColumnId

§

impl Eq for ColumnId

§

impl StructuralPartialEq for ColumnId