pub struct InterfaceRef {
pub program: Option<String>,
pub path: Path,
}Expand description
A reference to an interface, possibly from another program/library.
Fields§
§program: Option<String>None means local to the current program/library.
path: PathPath segments to the interface, e.g. ["IToken"] or ["mod", "IToken"].
Trait Implementations§
Source§impl Clone for InterfaceRef
impl Clone for InterfaceRef
Source§fn clone(&self) -> InterfaceRef
fn clone(&self) -> InterfaceRef
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 InterfaceRef
impl Debug for InterfaceRef
Source§impl<'de> Deserialize<'de> for InterfaceRef
impl<'de> Deserialize<'de> for InterfaceRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InterfaceRef
impl PartialEq for InterfaceRef
Source§fn eq(&self, other: &InterfaceRef) -> bool
fn eq(&self, other: &InterfaceRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InterfaceRef
impl Serialize for InterfaceRef
impl Eq for InterfaceRef
impl StructuralPartialEq for InterfaceRef
Auto Trait Implementations§
impl Freeze for InterfaceRef
impl RefUnwindSafe for InterfaceRef
impl Send for InterfaceRef
impl Sync for InterfaceRef
impl Unpin for InterfaceRef
impl UnsafeUnpin for InterfaceRef
impl UnwindSafe for InterfaceRef
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