[−][src]Struct protofish::context::EnumInfo
Enum details
Fields
name: String
Enum name.
full_name: String
Full message name, including package and parent type names.
self_ref: EnumRef
EnumRef
that references this enum.
fields: Vec<EnumField>
Enum fields.
Implementations
impl EnumInfo
[src]
pub fn field_by_value(&self, value: i64) -> Option<&EnumField>
[src]
Gets a field by value.
If the field is aliased, an undefined field alias is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EnumInfo
impl Send for EnumInfo
impl Sync for EnumInfo
impl Unpin for EnumInfo
impl UnwindSafe for EnumInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,