pub struct ProgramValueMetadata { /* private fields */ }Expand description
Dtype and ordered symbolic extents of one semantic SSA value.
Implementations§
Source§impl ProgramValueMetadata
impl ProgramValueMetadata
Sourcepub fn new(dtype: DType, shape: impl IntoIterator<Item = DimExpr>) -> Self
pub fn new(dtype: DType, shape: impl IntoIterator<Item = DimExpr>) -> Self
Construct value metadata from a dtype and symbolic shape.
Sourcepub fn from_extents(
dtype: DType,
shape: impl IntoIterator<Item = ShapeExtent<DimExpr>>,
) -> Self
pub fn from_extents( dtype: DType, shape: impl IntoIterator<Item = ShapeExtent<DimExpr>>, ) -> Self
Construct metadata with explicit exact, bounded, or unknown extents.
Sourcepub fn shape(&self) -> &[ShapeExtent<DimExpr>]
pub fn shape(&self) -> &[ShapeExtent<DimExpr>]
Borrow the ordered symbolic extents without allocation.
Trait Implementations§
Source§impl Clone for ProgramValueMetadata
impl Clone for ProgramValueMetadata
Source§fn clone(&self) -> ProgramValueMetadata
fn clone(&self) -> ProgramValueMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgramValueMetadata
impl Debug for ProgramValueMetadata
Source§impl Hash for ProgramValueMetadata
impl Hash for ProgramValueMetadata
Source§impl PartialEq for ProgramValueMetadata
impl PartialEq for ProgramValueMetadata
Source§fn eq(&self, other: &ProgramValueMetadata) -> bool
fn eq(&self, other: &ProgramValueMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProgramValueMetadata
impl StructuralPartialEq for ProgramValueMetadata
Auto Trait Implementations§
impl Freeze for ProgramValueMetadata
impl RefUnwindSafe for ProgramValueMetadata
impl Send for ProgramValueMetadata
impl Sync for ProgramValueMetadata
impl Unpin for ProgramValueMetadata
impl UnsafeUnpin for ProgramValueMetadata
impl UnwindSafe for ProgramValueMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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