Struct mesh::payload::protofile::MessageDescriptor
source · pub struct MessageDescriptor<'a> { /* private fields */ }
Expand description
A message descriptor.
Implementations§
source§impl<'a> MessageDescriptor<'a>
impl<'a> MessageDescriptor<'a>
sourcepub const fn new(
name: &'a str,
comment: &'a str,
fields: &'a [FieldDescriptor<'a>],
oneofs: &'a [OneofDescriptor<'a>],
messages: &'a [MessageDescriptor<'a>],
) -> MessageDescriptor<'a>
pub const fn new( name: &'a str, comment: &'a str, fields: &'a [FieldDescriptor<'a>], oneofs: &'a [OneofDescriptor<'a>], messages: &'a [MessageDescriptor<'a>], ) -> MessageDescriptor<'a>
Creates a new message descriptor.
Trait Implementations§
source§impl<'a> Clone for MessageDescriptor<'a>
impl<'a> Clone for MessageDescriptor<'a>
source§fn clone(&self) -> MessageDescriptor<'a>
fn clone(&self) -> MessageDescriptor<'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 MessageDescriptor<'a>
impl<'a> Debug for MessageDescriptor<'a>
source§impl<'a> Hash for MessageDescriptor<'a>
impl<'a> Hash for MessageDescriptor<'a>
source§impl<'a> PartialEq for MessageDescriptor<'a>
impl<'a> PartialEq for MessageDescriptor<'a>
impl<'a> Copy for MessageDescriptor<'a>
impl<'a> Eq for MessageDescriptor<'a>
impl<'a> StructuralPartialEq for MessageDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageDescriptor<'a>
impl<'a> RefUnwindSafe for MessageDescriptor<'a>
impl<'a> Send for MessageDescriptor<'a>
impl<'a> Sync for MessageDescriptor<'a>
impl<'a> Unpin for MessageDescriptor<'a>
impl<'a> UnwindSafe for MessageDescriptor<'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
)