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>
impl<'a> StructuralPartialEq for InventoryItem<'a>
Auto Trait Implementationsยง
impl<'a> Freeze for InventoryItem<'a>
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)