Struct predicates_core::reflection::Product [−][src]
pub struct Product(_, _);
A by-product of a predicate evaluation.
use predicates_core; let product = predicates_core::reflection::Product::new("key", "value"); println!("{}", product); let product = predicates_core::reflection::Product::new(format!("key-{}", 5), 30); println!("{}", product);
Methods
impl Product
[src]
impl Product
pub fn new<S, D>(key: S, value: D) -> Self where
S: Into<Cow<'static, str>>,
D: Display + 'static,
[src]
pub fn new<S, D>(key: S, value: D) -> Self where
S: Into<Cow<'static, str>>,
D: Display + 'static,
Create a new Product
.
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Access the Product
name.
pub fn value(&self) -> &Display
[src]
pub fn value(&self) -> &Display
Access the Product
value.
Trait Implementations
impl<'a> Display for Product
[src]
impl<'a> Display for Product
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Debug for Product
[src]
impl<'a> Debug for Product