pub enum ProtocolStructInfo {
Struct {
name: &'static str,
type_id: TypeId,
fields: &'static [(&'static str, TypeId)],
},
Enum {
name: &'static str,
type_id: TypeId,
variants: &'static [(&'static str, Option<&'static [(&'static str, TypeId)]>)],
},
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ProtocolStructInfo
impl Clone for ProtocolStructInfo
Source§fn clone(&self) -> ProtocolStructInfo
fn clone(&self) -> ProtocolStructInfo
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 moreimpl Copy for ProtocolStructInfo
Auto Trait Implementations§
impl Freeze for ProtocolStructInfo
impl RefUnwindSafe for ProtocolStructInfo
impl Send for ProtocolStructInfo
impl Sync for ProtocolStructInfo
impl Unpin for ProtocolStructInfo
impl UnwindSafe for ProtocolStructInfo
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