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