pub struct StructType<'a>(/* private fields */);
Implementations§
Source§impl<'a> StructType<'a>
impl<'a> StructType<'a>
pub fn name(&self) -> StringView<'a>
Source§impl<'a> StructType<'a>
impl<'a> StructType<'a>
pub fn get_parameters(&self) -> TypeParameters<'a>
Source§impl StructType<'_>
impl StructType<'_>
pub fn is_message(&self) -> bool
Source§impl<'a> StructType<'a>
impl<'a> StructType<'a>
pub fn get_message(&self) -> MessageType<'a>
Source§impl<'a> StructType<'a>
impl<'a> StructType<'a>
pub fn new_message(message_type: &MessageType<'a>) -> Self
pub fn new_basic(name: &'a str) -> Self
Trait Implementations§
Source§impl<'a> Clone for StructType<'a>
impl<'a> Clone for StructType<'a>
Source§fn clone(&self) -> StructType<'a>
fn clone(&self) -> StructType<'a>
Returns a duplicate 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 Default for StructType<'static>
impl Default for StructType<'static>
Source§impl<'a> ExternType for StructType<'a>
impl<'a> ExternType for StructType<'a>
impl<'a> Copy for StructType<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructType<'a>
impl<'a> RefUnwindSafe for StructType<'a>
impl<'a> Send for StructType<'a>
impl<'a> Sync for StructType<'a>
impl<'a> Unpin for StructType<'a>
impl<'a> UnwindSafe for StructType<'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