Struct predicates_core::reflection::Parameter [−][src]
pub struct Parameter<'a>(_, _);
A view of a Predicate parameter, provided by reflection.
use predicates_core; let param = predicates_core::reflection::Parameter::new("key", &10); println!("{}", param);
Methods
impl<'a> Parameter<'a>[src]
impl<'a> Parameter<'a>pub fn new(key: &'a str, value: &'a Display) -> Self[src]
pub fn new(key: &'a str, value: &'a Display) -> SelfCreate a new Parameter.
pub fn name(&self) -> &str[src]
pub fn name(&self) -> &strAccess the Parameter name.
pub fn value(&self) -> &Display[src]
pub fn value(&self) -> &DisplayAccess the Parameter value.
Trait Implementations
impl<'a> Display for Parameter<'a>[src]
impl<'a> Display for Parameter<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Debug for Parameter<'a>[src]
impl<'a> Debug for Parameter<'a>