[][src]Trait glsp::CallableOps

pub trait CallableOps: Sealed {
    pub fn name(&self) -> Option<Sym>;
pub fn arg_limits(&self) -> (usize, Option<usize>); pub fn min_args(&self) -> usize { ... }
pub fn max_args(&self) -> Option<usize> { ... } }

The callable abstract type.

glsp:call can be used to call any type which implements this trait.

This trait is sealed. It's not possible to implement this trait for your own types.

Required methods

pub fn name(&self) -> Option<Sym>[src]

Returns this function's registered name, if any.

pub fn arg_limits(&self) -> (usize, Option<usize>)[src]

Returns this function's minimum and maximum argument count.

Loading content...

Provided methods

pub fn min_args(&self) -> usize[src]

Returns this function's minimum argument count.

pub fn max_args(&self) -> Option<usize>[src]

Returns this function's maximum argument count, if any.

Loading content...


impl CallableOps for Callable[src]

impl CallableOps for Root<Class>[src]

impl CallableOps for Root<GFn>[src]

impl CallableOps for Root<RFn>[src]

Loading content...