pub struct Predicate {
pub name: String,
pub parameters: Vec<Parameter>,
}
Expand description
A predicate with parameters (untyped).
Fields§
§name: String
The name of the predicate.
parameters: Vec<Parameter>
The parameters of the predicate.
Implementations§
Source§impl Predicate
impl Predicate
Sourcepub fn parse_predicates(
input: TokenStream<'_>,
) -> IResult<TokenStream<'_>, Vec<Predicate>, ParserError>
pub fn parse_predicates( input: TokenStream<'_>, ) -> IResult<TokenStream<'_>, Vec<Predicate>, ParserError>
Parse a list of functions from a token stream.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Predicate
impl<'de> Deserialize<'de> for Predicate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Predicate
impl Ord for Predicate
Source§impl PartialOrd for Predicate
impl PartialOrd for Predicate
impl Eq for Predicate
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more