[][src]Struct protobuf::descriptorx::Scope

pub struct Scope<'a> {
    pub file_scope: FileScope<'a>,
    pub path: Vec<&'a DescriptorProto>,
}

Fields

file_scope: FileScope<'a>path: Vec<&'a DescriptorProto>

Methods

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

pub fn get_file_descriptor(&self) -> &'a FileDescriptorProto[src]

pub fn get_messages(&self) -> Vec<MessageWithScope<'a>>[src]

pub fn get_enums(&self) -> Vec<EnumWithScope<'a>>[src]

pub fn get_messages_and_enums(&self) -> Vec<MessageOrEnumWithScope<'a>>[src]

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

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

Trait Implementations

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

Auto Trait Implementations

impl<'a> Send for Scope<'a>

impl<'a> Unpin for Scope<'a>

impl<'a> Sync for Scope<'a>

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

impl<'a> !RefUnwindSafe for Scope<'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]