Skip to main content

Exprs

Struct Exprs 

Source
pub struct Exprs<Operator, Expr> { /* private fields */ }

Implementations§

Source§

impl<Operator, Expr> Exprs<Operator, Expr>

Source

pub fn try_eval<Value, State>( &self, state: &State, ) -> Result<Value, EvalPolishError>
where Operator: BeOperator<Value> + Clone, Expr: Evaluable<State, Value = Value>, State: ?Sized,

Source

pub fn validate_arity(&self) -> Result<(), EvalPolishError>
where Operator: BeOperator<()> + Clone,

Trait Implementations§

Source§

impl<Operator: Clone, Expr: Clone> Clone for Exprs<Operator, Expr>

Source§

fn clone(&self) -> Exprs<Operator, Expr>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Operator: Debug, Expr: Debug> Debug for Exprs<Operator, Expr>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Operator, Expr> Default for Exprs<Operator, Expr>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Exprs<BooleanOperator, AtomicLocationRuleExpr>

Source§

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<Operator: Eq, Expr: Eq> Eq for Exprs<Operator, Expr>

Source§

impl<Value, Operator, Expr, State> Evaluable<State> for Exprs<Operator, Expr>
where Operator: BeOperator<Value> + Clone, Expr: Evaluable<State, Value = Value>, State: ?Sized,

Source§

type Value = Result<Value, EvalPolishError>

Source§

fn eval(&self, state: &State) -> Self::Value

Source§

impl<Operator, Expr> From<Part<Operator, Expr>> for Exprs<Operator, Expr>

Source§

fn from(value: Part<Operator, Expr>) -> Self

Converts to this type from the input type.
Source§

impl<Operator, Expr> From<Vec<Part<Operator, Expr>>> for Exprs<Operator, Expr>

Source§

fn from(parts: Vec<Part<Operator, Expr>>) -> Self

Converts to this type from the input type.
Source§

impl<Operator, Expr> FromIterator<Part<Operator, Expr>> for Exprs<Operator, Expr>

Source§

fn from_iter<T: IntoIterator<Item = Part<Operator, Expr>>>(iter: T) -> Self

Creates a value from an iterator. Read more
Source§

impl<Operator, Expr, I> Index<I> for Exprs<Operator, Expr>
where I: SliceIndex<[Part<Operator, Expr>]>,

Source§

type Output = <[Part<Operator, Expr>] as Index<I>>::Output

The returned type after indexing.
Source§

fn index(&self, index: I) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<Operator, Expr> IntoIterator for Exprs<Operator, Expr>

Source§

type Item = Part<Operator, Expr>

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<Part<Operator, Expr>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'e, Operator, Expr> IntoIterator for &'e Exprs<Operator, Expr>

Source§

type Item = &'e Part<Operator, Expr>

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'e, Part<Operator, Expr>>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<Operator: PartialEq, Expr: PartialEq> PartialEq for Exprs<Operator, Expr>

Source§

fn eq(&self, other: &Exprs<Operator, Expr>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<Operator: Display, Expr: Display> Serialize for Exprs<Operator, Expr>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<Operator, Expr> StructuralPartialEq for Exprs<Operator, Expr>

Auto Trait Implementations§

§

impl<Operator, Expr> Freeze for Exprs<Operator, Expr>

§

impl<Operator, Expr> RefUnwindSafe for Exprs<Operator, Expr>
where Operator: RefUnwindSafe, Expr: RefUnwindSafe,

§

impl<Operator, Expr> Send for Exprs<Operator, Expr>
where Operator: Send, Expr: Send,

§

impl<Operator, Expr> Sync for Exprs<Operator, Expr>
where Operator: Sync, Expr: Sync,

§

impl<Operator, Expr> Unpin for Exprs<Operator, Expr>
where Operator: Unpin, Expr: Unpin,

§

impl<Operator, Expr> UnsafeUnpin for Exprs<Operator, Expr>

§

impl<Operator, Expr> UnwindSafe for Exprs<Operator, Expr>
where Operator: UnwindSafe, Expr: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.