Enum interoptopus::InventoryItem
source · pub enum InventoryItem<'a> {
Function(&'a Function),
CType(&'a CType),
Constant(&'a Constant),
Pattern(&'a LibraryPattern),
Namespace(&'a str),
}
Expand description
References to items contained within an Inventory
.
This enum is primarily used by functions such as Inventory::filter
that need to handle
items of various types.
Variants§
Function(&'a Function)
CType(&'a CType)
Constant(&'a Constant)
Pattern(&'a LibraryPattern)
Namespace(&'a str)
Trait Implementations§
source§impl<'a> Clone for InventoryItem<'a>
impl<'a> Clone for InventoryItem<'a>
source§fn clone(&self) -> InventoryItem<'a>
fn clone(&self) -> InventoryItem<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for InventoryItem<'a>
impl<'a> Debug for InventoryItem<'a>
source§impl<'a> PartialEq for InventoryItem<'a>
impl<'a> PartialEq for InventoryItem<'a>
source§fn eq(&self, other: &InventoryItem<'a>) -> bool
fn eq(&self, other: &InventoryItem<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for InventoryItem<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InventoryItem<'a>
impl<'a> Send for InventoryItem<'a>
impl<'a> Sync for InventoryItem<'a>
impl<'a> Unpin for InventoryItem<'a>
impl<'a> UnwindSafe for InventoryItem<'a>
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