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 StructuralEq for TypeOwner
impl StructuralPartialEq for TypeOwner
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.