pub struct PredSpec {
pub op: Option<String>,
pub not_op: Option<String>,
pub const_val: Option<String>,
pub equal: Option<Vec<EqualPair>>,
pub lhs: Option<Box<PredSpec>>,
pub rhs: Option<Box<PredSpec>>,
pub arity: Option<usize>,
pub children: Option<Vec<PredSpec>>,
}Expand description
Describes how a predicate is specified in a rule file.
Fields§
§op: Option<String>§not_op: Option<String>§const_val: Option<String>§equal: Option<Vec<EqualPair>>§lhs: Option<Box<PredSpec>>§rhs: Option<Box<PredSpec>>§arity: Option<usize>§children: Option<Vec<PredSpec>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PredSpec
impl<'de> Deserialize<'de> for PredSpec
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
impl Eq for PredSpec
impl StructuralPartialEq for PredSpec
Auto Trait Implementations§
impl Freeze for PredSpec
impl RefUnwindSafe for PredSpec
impl Send for PredSpec
impl Sync for PredSpec
impl Unpin for PredSpec
impl UnsafeUnpin for PredSpec
impl UnwindSafe for PredSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more