Enum wit_parser::TypeOwner
source · pub enum TypeOwner {
World(WorldId),
Interface(InterfaceId),
None,
}Variants§
World(WorldId)
This type was defined within a world block.
Interface(InterfaceId)
This type was defined within an interface block.
None
This type wasn’t inherently defined anywhere, such as a list<T>, which
doesn’t need an owner.
Trait Implementations§
source§impl PartialEq for TypeOwner
impl PartialEq for TypeOwner
impl Copy for TypeOwner
impl Eq for TypeOwner
impl StructuralPartialEq for TypeOwner
Auto Trait Implementations§
impl Freeze for TypeOwner
impl RefUnwindSafe for TypeOwner
impl Send for TypeOwner
impl Sync for TypeOwner
impl Unpin for TypeOwner
impl UnwindSafe for TypeOwner
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.