Enum weresocool_ast::lists::ListOp
source · pub enum ListOp {
Const {
terms: Vec<Term>,
},
Named {
name: String,
},
ListOpIndexed {
list_op: Box<ListOp>,
indices: Indices,
direction: Direction,
},
GenOp {
gen: GenOp,
},
Concat {
listops: Vec<ListOp>,
},
}
Variants§
Implementations§
source§impl ListOp
impl ListOp
pub fn term_vectors( &self, defs: &mut Defs<Term> ) -> Result<Vec<TermVector>, Error>
source§impl ListOp
impl ListOp
pub fn to_list_nf( &self, input: &mut NormalForm, defs: &mut Defs<Term> ) -> Result<Vec<NormalForm>, Error>
Trait Implementations§
source§impl GetLengthRatio<Term> for ListOp
impl GetLengthRatio<Term> for ListOp
fn get_length_ratio( &self, normal_form: &NormalForm, defs: &mut Defs<Term> ) -> Result<Rational64, Error>
source§impl Normalize<Term> for ListOp
impl Normalize<Term> for ListOp
fn apply_to_normal_form( &self, input: &mut NormalForm, defs: &mut Defs<Term> ) -> Result<(), Error>
source§impl PartialEq<ListOp> for ListOp
impl PartialEq<ListOp> for ListOp
source§impl Substitute<Term> for ListOp
impl Substitute<Term> for ListOp
fn substitute( &self, normal_form: &mut NormalForm, defs: &mut Defs<Term> ) -> Result<Term, Error>
impl StructuralPartialEq for ListOp
Auto Trait Implementations§
impl RefUnwindSafe for ListOp
impl Send for ListOp
impl Sync for ListOp
impl Unpin for ListOp
impl UnwindSafe for ListOp
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