pub struct TupleUtils;Expand description
Utilities for working with tuples
Implementations§
Source§impl TupleUtils
impl TupleUtils
Sourcepub fn create_tuple_from_facts(
facts: Vec<Rc<dyn GreynetFact>>,
) -> Result<AnyTuple, String>
pub fn create_tuple_from_facts( facts: Vec<Rc<dyn GreynetFact>>, ) -> Result<AnyTuple, String>
Creates a tuple from a list of facts
Sourcepub fn combine_tuples(
left: &AnyTuple,
right: &AnyTuple,
) -> Result<AnyTuple, String>
pub fn combine_tuples( left: &AnyTuple, right: &AnyTuple, ) -> Result<AnyTuple, String>
Combines two tuples into a larger tuple
Sourcepub fn same_arity(tuple1: &AnyTuple, tuple2: &AnyTuple) -> bool
pub fn same_arity(tuple1: &AnyTuple, tuple2: &AnyTuple) -> bool
Checks if two tuples have the same arity
Sourcepub fn get_tuple_arity(tuple: &AnyTuple) -> TupleArity
pub fn get_tuple_arity(tuple: &AnyTuple) -> TupleArity
Gets the tuple arity as an enum
Auto Trait Implementations§
impl Freeze for TupleUtils
impl RefUnwindSafe for TupleUtils
impl Send for TupleUtils
impl Sync for TupleUtils
impl Unpin for TupleUtils
impl UnwindSafe for TupleUtils
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