Trait magnus::scan_args::ScanArgsBlock

source ·
pub trait ScanArgsBlock: ScanArgsBlock { }
Expand description

Trait implemented for types that can be retrieved as a block argument by scan_args.

This trait is implemented for Proc and Option<Proc>.

() also implements this trait as a placeholder for when no block argument is required, although Ruby will still allow a block to be passed, it will just ignore it (as is standard for all Ruby methods).

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ScanArgsBlock for T
where T: ScanArgsBlock,