pub struct LuaFileDescriptor(pub FileDescriptor);
Tuple Fields§
§0: FileDescriptor
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 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 From<LuaFileDescriptor> for FileDescriptor
impl From<LuaFileDescriptor> for FileDescriptor
Source§fn from(value: LuaFileDescriptor) -> Self
fn from(value: LuaFileDescriptor) -> 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 PartialEq for LuaFileDescriptor
impl PartialEq for LuaFileDescriptor
Source§impl UserData for LuaFileDescriptor
impl UserData for LuaFileDescriptor
Source§fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
Adds custom fields specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
impl Eq for LuaFileDescriptor
impl StructuralPartialEq for LuaFileDescriptor
Auto Trait Implementations§
impl Freeze for LuaFileDescriptor
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<T> FromLuaMulti for Twhere
T: FromLua,
impl<T> FromLuaMulti for Twhere
T: FromLua,
Source§fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue, lua: &Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue, i: usize, to: Option<&str>, lua: &Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &RawLua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &RawLua, ) -> Result<T, Error>
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 moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.