Skip to main content

ParamLike

Trait ParamLike 

Source
pub(crate) trait ParamLike {
    // Required methods
    fn type_name(&self) -> &str;
    fn name(&self) -> Option<&str>;
}
Expand description

Helper trait to abstract over a type that can be documented as a parameter.

Required Methods§

Source

fn type_name(&self) -> &str

Returns the type as a string.

Source

fn name(&self) -> Option<&str>

Returns the identifier of the parameter.

Implementations on Foreign Types§

Source§

impl<T> ParamLike for &T
where T: ParamLike,

Source§

fn type_name(&self) -> &str

Source§

fn name(&self) -> Option<&str>

Implementors§