Struct FunctionSort

Source
pub struct FunctionSort { /* private fields */ }

Implementations§

Source§

impl FunctionSort

Source

pub fn name(&self) -> &str

Source

pub fn inputs(&self) -> &[ArcSort]

Source

pub fn output(&self) -> ArcSort

Trait Implementations§

Source§

impl Debug for FunctionSort

Source§

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

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

impl Presort for FunctionSort

Source§

fn presort_name() -> &'static str

Source§

fn reserved_primitives() -> Vec<&'static str>

Source§

fn make_sort( typeinfo: &mut TypeInfo, name: String, args: &[Expr], ) -> Result<ArcSort, TypeError>

Source§

impl Sort for FunctionSort

Source§

fn name(&self) -> &str

Returns the name of this sort.
Source§

fn column_ty(&self, _backend: &EGraph) -> ColumnTy

Returns the backend-specific column type. See ColumnTy.
Source§

fn register_type(&self, backend: &mut EGraph)

Source§

fn as_arc_any(self: Arc<Self>) -> Arc<dyn Any + Send + Sync + 'static>

Source§

fn is_container_sort(&self) -> bool

Source§

fn is_eq_container_sort(&self) -> bool

Source§

fn serialized_name( &self, container_values: &ContainerValues, value: Value, ) -> String

Return the serialized name of the sort Read more
Source§

fn inner_sorts(&self) -> Vec<ArcSort>

return the inner sorts if a container sort remember that containers can contain containers and this only unfolds one level
Source§

fn inner_values( &self, container_values: &ContainerValues, value: Value, ) -> Vec<(ArcSort, Value)>

Return the inner values and sorts. Only container sort need to implement this method,
Source§

fn register_primitives(self: Arc<Self>, eg: &mut EGraph)

Source§

fn value_type(&self) -> Option<TypeId>

Return the type id of values that this sort represents. Read more
Source§

fn reconstruct_termdag_container( &self, container_values: &ContainerValues, value: Value, termdag: &mut TermDag, element_terms: Vec<Term>, ) -> Term

Reconstruct a container value in a TermDag
Source§

fn is_eq_sort(&self) -> bool

Source§

fn reconstruct_termdag_base( &self, base_values: &BaseValues, value: Value, termdag: &mut TermDag, ) -> Term

Reconstruct a leaf primitive value in a TermDag

Auto Trait Implementations§

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<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> 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V