Struct mesh::payload::protofile::TopLevelDescriptor
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)