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<TypeOwner> for TypeOwner
impl PartialEq<TypeOwner> for TypeOwner
impl Copy 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