oa::SemanticValueDesc

Handle-free description of one logical value.

StRust public API

Declaration

pub struct SemanticValueDesc { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn external(self, external: bool) -> Self
pub const fn virtual_value(self, virtual_value: bool) -> Self
pub const fn byte_offset(self, byte_offset: u64) -> Self
pub fn strides(self, strides: impl Into<Vec<isize>>) -> Result<Self>
pub const fn id(&self) -> Option<SemanticValueId>
pub fn name(&self) -> &str
pub const fn kind(&self) -> OpValueKind
pub fn shape(&self) -> &[usize]
pub fn strides_ref(&self) -> &[isize]
pub const fn dtype(&self) -> DType
pub const fn byte_offset_value(&self) -> u64
pub const fn is_external(&self) -> bool
pub const fn is_virtual(&self) -> bool
pub const fn producer(&self) -> Option<SemanticOpId>
pub const fn view_source(&self) -> Option<SemanticValueId>
pub const fn view_byte_offset(&self) -> i64
fn clone(&self) -> SemanticValueDesc
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &SemanticValueDesc) -> bool

Associated Functions

pub fn new( name: impl Into<String>, kind: OpValueKind, shape: impl Into<Vec<usize>>, dtype: DType, ) -> Result<Self>

Public Method Documentation

pub const fn external( self, external: bool ) -> Self
No public source comment is attached to this declaration.
pub const fn virtual_value( self, virtual_value: bool ) -> Self
No public source comment is attached to this declaration.
pub const fn byte_offset( self, byte_offset: u64 ) -> Self
No public source comment is attached to this declaration.
pub fn strides( self, strides: impl Into<Vec<isize>> ) -> Result<Self>
No public source comment is attached to this declaration.
pub const fn id( &self ) -> Option<SemanticValueId>
No public source comment is attached to this declaration.
pub fn name( &self ) -> &str
No public source comment is attached to this declaration.
pub const fn kind( &self ) -> OpValueKind
No public source comment is attached to this declaration.
pub fn shape( &self ) -> &[usize]
No public source comment is attached to this declaration.
pub fn strides_ref( &self ) -> &[isize]
No public source comment is attached to this declaration.
pub const fn dtype( &self ) -> DType
No public source comment is attached to this declaration.
pub const fn byte_offset_value( &self ) -> u64
No public source comment is attached to this declaration.
pub const fn is_external( &self ) -> bool
No public source comment is attached to this declaration.
pub const fn is_virtual( &self ) -> bool
No public source comment is attached to this declaration.
pub const fn producer( &self ) -> Option<SemanticOpId>
No public source comment is attached to this declaration.
pub const fn view_source( &self ) -> Option<SemanticValueId>
No public source comment is attached to this declaration.
pub const fn view_byte_offset( &self ) -> i64
No public source comment is attached to this declaration.
fn clone( &self ) -> SemanticValueDesc
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &SemanticValueDesc ) -> bool
No public source comment is attached to this declaration.
pub fn new( name: impl Into<String>, kind: OpValueKind, shape: impl Into<Vec<usize>>, dtype: DType ) -> Result<Self>
No public source comment is attached to this declaration.