pub struct InputSpecializationProjection { /* private fields */ }Expand description
Projected specialization fields for one input.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Implementations§
Source§impl InputSpecializationProjection
impl InputSpecializationProjection
Sourcepub fn dtype(&self) -> Option<DType>
pub fn dtype(&self) -> Option<DType>
Return projected dtype, if specialized.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Sourcepub fn rank(&self) -> Option<usize>
pub fn rank(&self) -> Option<usize>
Return projected rank, if specialized.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Sourcepub fn concrete_dimensions(&self) -> &[(u32, usize)]
pub fn concrete_dimensions(&self) -> &[(u32, usize)]
Return projected concrete dimensions.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Sourcepub fn placement(&self) -> Option<&PlacementProjection>
pub fn placement(&self) -> Option<&PlacementProjection>
Return projected placement, if specialized.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Sourcepub fn layout(&self) -> Option<&LayoutProjection>
pub fn layout(&self) -> Option<&LayoutProjection>
Return projected layout, if specialized.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Sourcepub fn alignment_log2(&self) -> Option<u8>
pub fn alignment_log2(&self) -> Option<u8>
Return projected alignment class, if specialized.
§Examples
use tenferro_runtime::{InputSignature, SpecializationRequirements};
let projection = SpecializationRequirements::polymorphic(0)
.project(&InputSignature::new(Vec::new()))
?;
assert!(projection.inputs().is_empty());Trait Implementations§
Source§impl Clone for InputSpecializationProjection
impl Clone for InputSpecializationProjection
Source§fn clone(&self) -> InputSpecializationProjection
fn clone(&self) -> InputSpecializationProjection
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 Hash for InputSpecializationProjection
impl Hash for InputSpecializationProjection
Source§impl PartialEq for InputSpecializationProjection
impl PartialEq for InputSpecializationProjection
Source§fn eq(&self, other: &InputSpecializationProjection) -> bool
fn eq(&self, other: &InputSpecializationProjection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InputSpecializationProjection
impl StructuralPartialEq for InputSpecializationProjection
Auto Trait Implementations§
impl Freeze for InputSpecializationProjection
impl RefUnwindSafe for InputSpecializationProjection
impl Send for InputSpecializationProjection
impl Sync for InputSpecializationProjection
impl Unpin for InputSpecializationProjection
impl UnsafeUnpin for InputSpecializationProjection
impl UnwindSafe for InputSpecializationProjection
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