pub enum SingularKind {
Scalar(ScalarType),
Enum(EnumIndex),
Message(MessageIndex),
}Expand description
Variants§
Scalar(ScalarType)
A scalar value.
Enum(EnumIndex)
An enum value, referencing an enum in the pool.
Message(MessageIndex)
A message value, referencing a message in the pool.
Trait Implementations§
Source§impl Clone for SingularKind
impl Clone for SingularKind
Source§fn clone(&self) -> SingularKind
fn clone(&self) -> SingularKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SingularKind
impl Debug for SingularKind
Source§impl Hash for SingularKind
impl Hash for SingularKind
Source§impl PartialEq for SingularKind
impl PartialEq for SingularKind
Source§fn eq(&self, other: &SingularKind) -> bool
fn eq(&self, other: &SingularKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SingularKind
impl Eq for SingularKind
impl StructuralPartialEq for SingularKind
Auto Trait Implementations§
impl Freeze for SingularKind
impl RefUnwindSafe for SingularKind
impl Send for SingularKind
impl Sync for SingularKind
impl Unpin for SingularKind
impl UnsafeUnpin for SingularKind
impl UnwindSafe for SingularKind
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