pub struct TopLevelDescriptor<'a> { /* private fields */ }
Expand description
A message descriptor for a message rooted directly in a package (and not nested in another message type).
Implementations§
Source§impl<'a> TopLevelDescriptor<'a>
impl<'a> TopLevelDescriptor<'a>
Sourcepub const fn message(
package: &'a str,
message: &'a MessageDescriptor<'a>,
) -> TopLevelDescriptor<'a>
pub const fn message( package: &'a str, message: &'a MessageDescriptor<'a>, ) -> TopLevelDescriptor<'a>
Returns a new descriptor.
Trait Implementations§
Source§impl<'a> Clone for TopLevelDescriptor<'a>
impl<'a> Clone for TopLevelDescriptor<'a>
Source§fn clone(&self) -> TopLevelDescriptor<'a>
fn clone(&self) -> TopLevelDescriptor<'a>
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<'a> Debug for TopLevelDescriptor<'a>
impl<'a> Debug for TopLevelDescriptor<'a>
Source§impl<'a> Hash for TopLevelDescriptor<'a>
impl<'a> Hash for TopLevelDescriptor<'a>
Source§impl<'a> PartialEq for TopLevelDescriptor<'a>
impl<'a> PartialEq for TopLevelDescriptor<'a>
impl<'a> Copy for TopLevelDescriptor<'a>
impl<'a> Eq for TopLevelDescriptor<'a>
impl<'a> StructuralPartialEq for TopLevelDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for TopLevelDescriptor<'a>
impl<'a> RefUnwindSafe for TopLevelDescriptor<'a>
impl<'a> Send for TopLevelDescriptor<'a>
impl<'a> Sync for TopLevelDescriptor<'a>
impl<'a> Unpin for TopLevelDescriptor<'a>
impl<'a> UnwindSafe for TopLevelDescriptor<'a>
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