pub struct MultilinearQueryRef<'a, P: PackedField> { /* private fields */ }
Expand description
Wraps MultilinearQuery
to hide Backend
from the users.
Implementations§
source§impl<'a, P: PackedField> MultilinearQueryRef<'a, P>
impl<'a, P: PackedField> MultilinearQueryRef<'a, P>
pub fn new<Backend: ComputationBackend>( query: &'a MultilinearQuery<P, Backend> ) -> Self
pub fn n_vars(&self) -> usize
Trait Implementations§
source§impl<'a, P: Clone + PackedField> Clone for MultilinearQueryRef<'a, P>
impl<'a, P: Clone + PackedField> Clone for MultilinearQueryRef<'a, P>
source§fn clone(&self) -> MultilinearQueryRef<'a, P>
fn clone(&self) -> MultilinearQueryRef<'a, P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, P: Debug + PackedField> Debug for MultilinearQueryRef<'a, P>
impl<'a, P: Debug + PackedField> Debug for MultilinearQueryRef<'a, P>
source§impl<'a, P: PackedField, Backend: ComputationBackend> From<&'a MultilinearQuery<P, Backend>> for MultilinearQueryRef<'a, P>
impl<'a, P: PackedField, Backend: ComputationBackend> From<&'a MultilinearQuery<P, Backend>> for MultilinearQueryRef<'a, P>
source§fn from(query: &'a MultilinearQuery<P, Backend>) -> Self
fn from(query: &'a MultilinearQuery<P, Backend>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, P> Freeze for MultilinearQueryRef<'a, P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
impl<'a, P> RefUnwindSafe for MultilinearQueryRef<'a, P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static + RefUnwindSafe,
impl<'a, P> Send for MultilinearQueryRef<'a, P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
impl<'a, P> Sync for MultilinearQueryRef<'a, P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
impl<'a, P> Unpin for MultilinearQueryRef<'a, P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
impl<'a, P> UnwindSafe for MultilinearQueryRef<'a, P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static + RefUnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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