Struct SubfieldSlice

Source
pub struct SubfieldSlice<'a, F, Mem: ComputeMemory<F>> {
    pub slice: Mem::FSlice<'a>,
    pub tower_level: usize,
}
Expand description

SubfieldSlice is a structure that represents a slice of elements stored in a compute memory, along with an associated tower level. This structure is used to handle subfield operations within a computational context, where the slice is an immutable reference to the data and tower_level indicates the level of the field tower to which the elements belong.

§Type Parameters

  • 'a: The lifetime of the slice reference.
  • F: The type of the field elements stored in the slice.
  • Mem: A type that implements the ComputeMemory trait, which provides the necessary operations for handling memory slices.

§Fields

  • slice: An immutable slice of elements stored in compute memory, represented by Mem::FSlice<'a>.
  • tower_level: A usize value indicating the level of the field tower for the elements in the slice.

§Usage

SubfieldSlice is typically used in scenarios where operations need to be performed on specific subfields of a larger field structure, allowing for efficient computation and manipulation of data within a hierarchical field system.

Fields§

§slice: Mem::FSlice<'a>§tower_level: usize

Implementations§

Source§

impl<'a, F, Mem: ComputeMemory<F>> SubfieldSlice<'a, F, Mem>

Source

pub fn new(slice: Mem::FSlice<'a>, tower_level: usize) -> Self

Source

pub fn len(&self) -> usize
where F: TowerField,

Returns the length of the slice in terms of the number of subfield elements it contains.

Source

pub fn is_empty(&self) -> bool
where F: TowerField,

Auto Trait Implementations§

§

impl<'a, F, Mem> Freeze for SubfieldSlice<'a, F, Mem>
where <Mem as ComputeMemory<F>>::FSlice<'a>: Freeze,

§

impl<'a, F, Mem> RefUnwindSafe for SubfieldSlice<'a, F, Mem>
where <Mem as ComputeMemory<F>>::FSlice<'a>: RefUnwindSafe,

§

impl<'a, F, Mem> Send for SubfieldSlice<'a, F, Mem>

§

impl<'a, F, Mem> Sync for SubfieldSlice<'a, F, Mem>

§

impl<'a, F, Mem> Unpin for SubfieldSlice<'a, F, Mem>
where <Mem as ComputeMemory<F>>::FSlice<'a>: Unpin,

§

impl<'a, F, Mem> UnwindSafe for SubfieldSlice<'a, F, Mem>
where <Mem as ComputeMemory<F>>::FSlice<'a>: UnwindSafe,

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more