pub struct LuaFileDescriptor(/* private fields */);
Methods from Deref<Target = FileDescriptor>§
sourcepub fn messages(&self) -> impl Iterator<Item = MessageDescriptor>
pub fn messages(&self) -> impl Iterator<Item = MessageDescriptor>
Top-level messages.
sourcepub fn enums(&self) -> impl Iterator<Item = EnumDescriptor>
pub fn enums(&self) -> impl Iterator<Item = EnumDescriptor>
Get top-level enums.
sourcepub fn services(&self) -> impl Iterator<Item = ServiceDescriptor>
pub fn services(&self) -> impl Iterator<Item = ServiceDescriptor>
Get services defined in .proto
file.
sourcepub fn extensions(&self) -> impl Iterator<Item = FieldDescriptor>
pub fn extensions(&self) -> impl Iterator<Item = FieldDescriptor>
Extension fields.
sourcepub fn message_by_package_relative_name(
&self,
name: &str
) -> Option<MessageDescriptor>
pub fn message_by_package_relative_name( &self, name: &str ) -> Option<MessageDescriptor>
Find message by name relative to the package.
Only search in the current file, not in any dependencies.
sourcepub fn enum_by_package_relative_name(
&self,
name: &str
) -> Option<EnumDescriptor>
pub fn enum_by_package_relative_name( &self, name: &str ) -> Option<EnumDescriptor>
Find message by name relative to the package.
Only search in the current file, not in any dependencies.
sourcepub fn message_by_full_name(&self, name: &str) -> Option<MessageDescriptor>
pub fn message_by_full_name(&self, name: &str) -> Option<MessageDescriptor>
Find message by fully-qualified name.
Only search in the current file, not in any dependencies.
sourcepub fn enum_by_full_name(&self, name: &str) -> Option<EnumDescriptor>
pub fn enum_by_full_name(&self, name: &str) -> Option<EnumDescriptor>
Find enum by name fully-qualified name.
Only search in the current file, not in any dependencies.
sourcepub fn proto(&self) -> &FileDescriptorProto
pub fn proto(&self) -> &FileDescriptorProto
.proto
data for this file.
sourcepub fn deps(&self) -> &[FileDescriptor]
pub fn deps(&self) -> &[FileDescriptor]
Direct dependencies of this file.
sourcepub fn public_deps(&self) -> impl Iterator<Item = FileDescriptor>
pub fn public_deps(&self) -> impl Iterator<Item = FileDescriptor>
Subset of dependencies which are public
Trait Implementations§
source§impl Clone for LuaFileDescriptor
impl Clone for LuaFileDescriptor
source§fn clone(&self) -> LuaFileDescriptor
fn clone(&self) -> LuaFileDescriptor
Returns a copy of the value. Read more
1.0.0 · 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 LuaFileDescriptor
impl Debug for LuaFileDescriptor
source§impl Deref for LuaFileDescriptor
impl Deref for LuaFileDescriptor
source§impl DerefMut for LuaFileDescriptor
impl DerefMut for LuaFileDescriptor
source§impl From<FileDescriptor> for LuaFileDescriptor
impl From<FileDescriptor> for LuaFileDescriptor
source§fn from(value: FileDescriptor) -> Self
fn from(value: FileDescriptor) -> Self
Converts to this type from the input type.
source§impl FromLua<'_> for LuaFileDescriptorwhere
Self: 'static + Clone,
impl FromLua<'_> for LuaFileDescriptorwhere Self: 'static + Clone,
source§impl Hash for LuaFileDescriptor
impl Hash for LuaFileDescriptor
source§impl Into<FileDescriptor> for LuaFileDescriptor
impl Into<FileDescriptor> for LuaFileDescriptor
source§fn into(self) -> FileDescriptor
fn into(self) -> FileDescriptor
Converts this type into the (usually inferred) input type.
source§impl PartialEq for LuaFileDescriptor
impl PartialEq for LuaFileDescriptor
source§fn eq(&self, other: &LuaFileDescriptor) -> bool
fn eq(&self, other: &LuaFileDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl UserData for LuaFileDescriptor
impl UserData for LuaFileDescriptor
source§fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
source§fn add_fields<'lua, F>(fields: &mut F)where
F: UserDataFields<'lua, Self>,
fn add_fields<'lua, F>(fields: &mut F)where F: UserDataFields<'lua, Self>,
Adds custom fields specific to this userdata.
impl Eq for LuaFileDescriptor
impl StructuralEq for LuaFileDescriptor
impl StructuralPartialEq for LuaFileDescriptor
Auto Trait Implementations§
impl !RefUnwindSafe for LuaFileDescriptor
impl Send for LuaFileDescriptor
impl Sync for LuaFileDescriptor
impl Unpin for LuaFileDescriptor
impl !UnwindSafe for LuaFileDescriptor
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere T: FromLua<'lua>,
source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua ) -> Result<T, Error>
source§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere T: IntoLua<'lua>,
source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.