pub enum PrimitiveId {
Table(TableId),
View(ViewId),
Flow(FlowId),
TableVirtual(VTableId),
RingBuffer(RingBufferId),
Dictionary(DictionaryId),
}Expand description
PrimitiveId represents identifiers for catalog primitives that use u64-based IDs.
Variants§
Table(TableId)
View(ViewId)
Flow(FlowId)
TableVirtual(VTableId)
RingBuffer(RingBufferId)
Dictionary(DictionaryId)
Implementations§
Source§impl PrimitiveId
impl PrimitiveId
pub fn table(id: impl Into<TableId>) -> Self
pub fn view(id: impl Into<ViewId>) -> Self
pub fn flow(id: impl Into<FlowId>) -> Self
pub fn vtable(id: impl Into<VTableId>) -> Self
pub fn ringbuffer(id: impl Into<RingBufferId>) -> Self
pub fn dictionary(id: impl Into<DictionaryId>) -> Self
Source§impl PrimitiveId
impl PrimitiveId
Sourcepub fn to_type_u8(&self) -> u8
pub fn to_type_u8(&self) -> u8
Returns the type discriminant as a u8 value
Sourcepub fn next(&self) -> PrimitiveId
pub fn next(&self) -> PrimitiveId
Creates a next primitive id for range operations (numerically next)
Sourcepub fn prev(&self) -> PrimitiveId
pub fn prev(&self) -> PrimitiveId
Creates a previous primitive id for range operations (numerically previous) In descending order encoding, this gives us the next value in sort order Uses wrapping_sub to handle ID 0 correctly (wraps to u64::MAX)
pub fn to_table_id(self) -> Result<TableId>
pub fn to_view_id(self) -> Result<ViewId>
pub fn to_flow_id(self) -> Result<FlowId>
pub fn to_vtable_id(self) -> Result<VTableId>
pub fn to_ringbuffer_id(self) -> Result<RingBufferId>
pub fn to_dictionary_id(self) -> Result<DictionaryId>
Trait Implementations§
Source§impl Clone for PrimitiveId
impl Clone for PrimitiveId
Source§fn clone(&self) -> PrimitiveId
fn clone(&self) -> PrimitiveId
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 PrimitiveId
impl Debug for PrimitiveId
Source§impl<'de> Deserialize<'de> for PrimitiveId
impl<'de> Deserialize<'de> for PrimitiveId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PrimitiveId
impl Display for PrimitiveId
Source§impl From<DictionaryId> for PrimitiveId
impl From<DictionaryId> for PrimitiveId
Source§fn from(id: DictionaryId) -> Self
fn from(id: DictionaryId) -> Self
Converts to this type from the input type.
Source§impl From<FlowId> for PrimitiveId
impl From<FlowId> for PrimitiveId
Source§impl From<PrimitiveId> for u64
impl From<PrimitiveId> for u64
Source§fn from(primitive: PrimitiveId) -> u64
fn from(primitive: PrimitiveId) -> u64
Converts to this type from the input type.
Source§impl From<RingBufferId> for PrimitiveId
impl From<RingBufferId> for PrimitiveId
Source§fn from(id: RingBufferId) -> Self
fn from(id: RingBufferId) -> Self
Converts to this type from the input type.
Source§impl From<TableId> for PrimitiveId
impl From<TableId> for PrimitiveId
Source§impl From<VTableId> for PrimitiveId
impl From<VTableId> for PrimitiveId
Source§impl From<ViewId> for PrimitiveId
impl From<ViewId> for PrimitiveId
Source§impl Hash for PrimitiveId
impl Hash for PrimitiveId
Source§impl Ord for PrimitiveId
impl Ord for PrimitiveId
Source§fn cmp(&self, other: &PrimitiveId) -> Ordering
fn cmp(&self, other: &PrimitiveId) -> 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<DictionaryId> for PrimitiveId
impl PartialEq<DictionaryId> for PrimitiveId
Source§impl PartialEq<FlowId> for PrimitiveId
impl PartialEq<FlowId> for PrimitiveId
Source§impl PartialEq<RingBufferId> for PrimitiveId
impl PartialEq<RingBufferId> for PrimitiveId
Source§impl PartialEq<TableId> for PrimitiveId
impl PartialEq<TableId> for PrimitiveId
Source§impl PartialEq<VTableId> for PrimitiveId
impl PartialEq<VTableId> for PrimitiveId
Source§impl PartialEq<ViewId> for PrimitiveId
impl PartialEq<ViewId> for PrimitiveId
Source§impl PartialEq<u64> for PrimitiveId
impl PartialEq<u64> for PrimitiveId
Source§impl PartialEq for PrimitiveId
impl PartialEq for PrimitiveId
Source§impl PartialOrd for PrimitiveId
impl PartialOrd for PrimitiveId
Source§impl Serialize for PrimitiveId
impl Serialize for PrimitiveId
impl Copy for PrimitiveId
impl Eq for PrimitiveId
impl StructuralPartialEq for PrimitiveId
Auto Trait Implementations§
impl Freeze for PrimitiveId
impl RefUnwindSafe for PrimitiveId
impl Send for PrimitiveId
impl Sync for PrimitiveId
impl Unpin for PrimitiveId
impl UnsafeUnpin for PrimitiveId
impl UnwindSafe for PrimitiveId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more