Struct ArrayBuilder

Source
pub struct ArrayBuilder<'a> { /* private fields */ }
Expand description

Builder for array operations.

This builder provides a fluent interface for creating array operations such as map, filter, reduce, etc.

Implementations§

Source§

impl<'a> ArrayBuilder<'a>

Source

pub fn new(arena: &'a DataArena) -> Self

Creates a new array builder.

Source

pub fn map_op(&self) -> MapBuilder<'a>

Creates a map operation.

Source

pub fn filter_op(&self) -> FilterBuilder<'a>

Creates a filter operation.

Source

pub fn reduce_op(&self) -> ReduceBuilder<'a>

Creates a reduce operation.

Source

pub fn merge_op(&self) -> ArrayOperationBuilder<'a>

Creates a merge operation.

Source

pub fn length_op(&self, array: Logic<'a>) -> Logic<'a>

Creates a length operation.

Source

pub fn slice_op(&self) -> SliceBuilder<'a>

Creates a slice operation.

Source

pub fn sort_op(&self) -> SortBuilder<'a>

Creates a sort operation.

Source

pub fn in_op(&self, value: Logic<'a>, array: Logic<'a>) -> Logic<'a>

Creates an in-array check operation.

Source

pub fn array_literal_op(&self, elements: Vec<Logic<'a>>) -> Logic<'a>

Creates an array literal.

Auto Trait Implementations§

§

impl<'a> Freeze for ArrayBuilder<'a>

§

impl<'a> !RefUnwindSafe for ArrayBuilder<'a>

§

impl<'a> !Send for ArrayBuilder<'a>

§

impl<'a> !Sync for ArrayBuilder<'a>

§

impl<'a> Unpin for ArrayBuilder<'a>

§

impl<'a> !UnwindSafe for ArrayBuilder<'a>

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, 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.