pub struct ProtocolMethod {
pub name: Arc<str>,
pub min_arity: usize,
pub variadic: bool,
}Expand description
One method signature declared in a defprotocol.
Fields§
§name: Arc<str>§min_arity: usize§variadic: boolTrait Implementations§
Source§impl Clone for ProtocolMethod
impl Clone for ProtocolMethod
Source§fn clone(&self) -> ProtocolMethod
fn clone(&self) -> ProtocolMethod
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 ProtocolMethod
impl Debug for ProtocolMethod
Source§impl Trace for ProtocolMethod
impl Trace for ProtocolMethod
fn trace(&self, _: &mut MarkVisitor)
fn gc_size_extra(&self) -> usize
Auto Trait Implementations§
impl Freeze for ProtocolMethod
impl RefUnwindSafe for ProtocolMethod
impl Send for ProtocolMethod
impl Sync for ProtocolMethod
impl Unpin for ProtocolMethod
impl UnsafeUnpin for ProtocolMethod
impl UnwindSafe for ProtocolMethod
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