pub struct EnumTypeLabels {
pub type_oid: u32,
pub labels: Vec<EnumTypeLabel>,
}Expand description
The labels of one enum type in ascending key order, which is declaration order.
Fields§
§type_oid: u32§labels: Vec<EnumTypeLabel>Implementations§
Source§impl EnumTypeLabels
impl EnumTypeLabels
pub fn by_key(&self, key: &EnumLabelKey) -> Option<&EnumTypeLabel>
pub fn by_text(&self, text: &str) -> Option<&EnumTypeLabel>
Trait Implementations§
Source§impl Clone for EnumTypeLabels
impl Clone for EnumTypeLabels
Source§impl Debug for EnumTypeLabels
impl Debug for EnumTypeLabels
impl Eq for EnumTypeLabels
Source§impl PartialEq for EnumTypeLabels
impl PartialEq for EnumTypeLabels
impl StructuralPartialEq for EnumTypeLabels
Auto Trait Implementations§
impl Freeze for EnumTypeLabels
impl RefUnwindSafe for EnumTypeLabels
impl Send for EnumTypeLabels
impl Sync for EnumTypeLabels
impl Unpin for EnumTypeLabels
impl UnsafeUnpin for EnumTypeLabels
impl UnwindSafe for EnumTypeLabels
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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