pub struct ProtocolFn {
pub protocol: GcPtr<Protocol>,
pub method_name: Arc<str>,
pub min_arity: usize,
pub variadic: bool,
}Expand description
Callable that dispatches a single protocol method on the type of args[0].
Fields§
§protocol: GcPtr<Protocol>§method_name: Arc<str>§min_arity: usize§variadic: boolTrait Implementations§
Source§impl Debug for ProtocolFn
impl Debug for ProtocolFn
Source§impl Trace for ProtocolFn
impl Trace for ProtocolFn
fn trace(&self, visitor: &mut MarkVisitor)
fn gc_size_extra(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for ProtocolFn
impl !Send for ProtocolFn
impl !Sync for ProtocolFn
impl !UnwindSafe for ProtocolFn
impl Freeze for ProtocolFn
impl Unpin for ProtocolFn
impl UnsafeUnpin for ProtocolFn
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