pub enum ReplyTypeObject {
Minimal(MinimalTypeObject),
Complete(CompleteTypeObject),
}Expand description
A getTypes reply item: a TypeObject (Minimal or Complete).
The kind is discriminated in the first byte of the serialized form
(see crate::type_object::TypeObject).
Variant size as crate::type_object::TypeObject — boxing the
Complete variant would be a micro-optimization requiring a refactor
at many call sites; ReplyTypeObject lives on the TypeLookup reply
path, not on the sample hot path.
Variants§
Trait Implementations§
Source§impl Clone for ReplyTypeObject
impl Clone for ReplyTypeObject
Source§fn clone(&self) -> ReplyTypeObject
fn clone(&self) -> ReplyTypeObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplyTypeObject
impl Debug for ReplyTypeObject
impl Eq for ReplyTypeObject
Source§impl PartialEq for ReplyTypeObject
impl PartialEq for ReplyTypeObject
Source§fn eq(&self, other: &ReplyTypeObject) -> bool
fn eq(&self, other: &ReplyTypeObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplyTypeObject
Auto Trait Implementations§
impl Freeze for ReplyTypeObject
impl RefUnwindSafe for ReplyTypeObject
impl Send for ReplyTypeObject
impl Sync for ReplyTypeObject
impl Unpin for ReplyTypeObject
impl UnsafeUnpin for ReplyTypeObject
impl UnwindSafe for ReplyTypeObject
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