pub struct ComponentImport { /* private fields */ }Expand description
Component import metadata.
Implementations§
Source§impl ComponentImport
impl ComponentImport
Sourcepub const fn new(name: InterfaceName, kind: ComponentItemKind) -> Self
pub const fn new(name: InterfaceName, kind: ComponentItemKind) -> Self
Creates component import metadata.
Sourcepub const fn name(&self) -> &InterfaceName
pub const fn name(&self) -> &InterfaceName
Returns the import name.
Sourcepub const fn kind(&self) -> ComponentItemKind
pub const fn kind(&self) -> ComponentItemKind
Returns the import kind.
Trait Implementations§
Source§impl Clone for ComponentImport
impl Clone for ComponentImport
Source§fn clone(&self) -> ComponentImport
fn clone(&self) -> ComponentImport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentImport
impl Debug for ComponentImport
Source§impl Hash for ComponentImport
impl Hash for ComponentImport
Source§impl PartialEq for ComponentImport
impl PartialEq for ComponentImport
Source§fn eq(&self, other: &ComponentImport) -> bool
fn eq(&self, other: &ComponentImport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ComponentImport
impl StructuralPartialEq for ComponentImport
Auto Trait Implementations§
impl Freeze for ComponentImport
impl RefUnwindSafe for ComponentImport
impl Send for ComponentImport
impl Sync for ComponentImport
impl Unpin for ComponentImport
impl UnsafeUnpin for ComponentImport
impl UnwindSafe for ComponentImport
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