pub struct ProtocolImplDecl {
pub protocol: Protocol,
pub type_name: String,
pub function: String,
}Expand description
One protocol impl registration: “function implements protocol for
the declared STRUCT named type_name”. Programmatic v1 (see the
module doc) — the future source spelling lowers into this same shape.
Fields§
§protocol: Protocol§type_name: StringThe declared STRUCT name the impl attaches to.
function: StringThe declared function (knot with is_function) that implements the
protocol method.
Trait Implementations§
Source§impl Clone for ProtocolImplDecl
impl Clone for ProtocolImplDecl
Source§fn clone(&self) -> ProtocolImplDecl
fn clone(&self) -> ProtocolImplDecl
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 ProtocolImplDecl
impl Debug for ProtocolImplDecl
impl Eq for ProtocolImplDecl
Source§impl PartialEq for ProtocolImplDecl
impl PartialEq for ProtocolImplDecl
impl StructuralPartialEq for ProtocolImplDecl
Auto Trait Implementations§
impl Freeze for ProtocolImplDecl
impl RefUnwindSafe for ProtocolImplDecl
impl Send for ProtocolImplDecl
impl Sync for ProtocolImplDecl
impl Unpin for ProtocolImplDecl
impl UnsafeUnpin for ProtocolImplDecl
impl UnwindSafe for ProtocolImplDecl
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§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§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.