[][src]Struct protobuf::descriptorx::FieldWithContext

pub struct FieldWithContext<'a> {
    pub field: &'a FieldDescriptorProto,
    pub message: MessageWithScope<'a>,
}

Fields

field: &'a FieldDescriptorProtomessage: MessageWithScope<'a>

Methods

impl<'a> FieldWithContext<'a>[src]

pub fn oneof(&'a self) -> Option<OneofWithContext<'a>>[src]

pub fn number(&self) -> u32[src]

pub fn name(&self) -> &str[src]

Shortcut

pub fn rust_name(&self) -> String[src]

pub fn containing_messages(&self) -> Vec<&'a DescriptorProto>[src]

Trait Implementations

impl<'a> Clone for FieldWithContext<'a>[src]

Auto Trait Implementations

impl<'a> Send for FieldWithContext<'a>

impl<'a> Unpin for FieldWithContext<'a>

impl<'a> Sync for FieldWithContext<'a>

impl<'a> !UnwindSafe for FieldWithContext<'a>

impl<'a> !RefUnwindSafe for FieldWithContext<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]