pub enum TypeKey {
Simple(SimpleTypeKey),
Complex(ComplexTypeKey),
}Expand description
Type definition reference (simple or complex)
Variants§
Simple(SimpleTypeKey)
Complex(ComplexTypeKey)
Implementations§
Source§impl TypeKey
impl TypeKey
pub fn as_simple(&self) -> Option<SimpleTypeKey>
pub fn as_complex(&self) -> Option<ComplexTypeKey>
Trait Implementations§
impl Copy for TypeKey
impl Eq for TypeKey
Source§impl From<ComplexTypeKey> for TypeKey
impl From<ComplexTypeKey> for TypeKey
Source§fn from(key: ComplexTypeKey) -> Self
fn from(key: ComplexTypeKey) -> Self
Converts to this type from the input type.
Source§impl From<SimpleTypeKey> for TypeKey
impl From<SimpleTypeKey> for TypeKey
Source§fn from(key: SimpleTypeKey) -> Self
fn from(key: SimpleTypeKey) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TypeKey
Auto Trait Implementations§
impl Freeze for TypeKey
impl RefUnwindSafe for TypeKey
impl Send for TypeKey
impl Sync for TypeKey
impl Unpin for TypeKey
impl UnsafeUnpin for TypeKey
impl UnwindSafe for TypeKey
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