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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.