pub struct StructTypeField<'a>(/* private fields */);Implementations§
Source§impl<'a> StructTypeField<'a>
impl<'a> StructTypeField<'a>
Source§impl StructTypeField<'_>
impl StructTypeField<'_>
Source§impl<'a> StructTypeField<'a>
impl<'a> StructTypeField<'a>
pub fn new_basic(name: &'a str, number: i32, type_: &Type<'a>) -> Self
pub fn new_message(field: &MessageTypeField<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for StructTypeField<'a>
impl<'a> Clone for StructTypeField<'a>
Source§fn clone(&self) -> StructTypeField<'a>
fn clone(&self) -> StructTypeField<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> ExternType for StructTypeField<'a>
impl<'a> ExternType for StructTypeField<'a>
impl<'a> Copy for StructTypeField<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructTypeField<'a>
impl<'a> RefUnwindSafe for StructTypeField<'a>
impl<'a> Send for StructTypeField<'a>
impl<'a> Sync for StructTypeField<'a>
impl<'a> Unpin for StructTypeField<'a>
impl<'a> UnwindSafe for StructTypeField<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)