pub struct StateComponentPolicy { /* private fields */ }Expand description
Symbolic geometry and persistence behavior of one named state component.
Implementations§
Source§impl StateComponentPolicy
impl StateComponentPolicy
Sourcepub const fn role(&self) -> StateComponentRole
pub const fn role(&self) -> StateComponentRole
Returns the stable semantic component role.
Sourcepub fn shape(&self) -> &[StateTensorDimension]
pub fn shape(&self) -> &[StateTensorDimension]
Returns the symbolic component shape.
Sourcepub const fn dtype(&self) -> StateTensorDtype
pub const fn dtype(&self) -> StateTensorDtype
Returns the accepted persisted dtype family.
Sourcepub const fn residency(&self) -> StateResidencyClass
pub const fn residency(&self) -> StateResidencyClass
Returns the runtime residency class.
Sourcepub const fn presence(&self) -> StateTensorPresence
pub const fn presence(&self) -> StateTensorPresence
Returns the conditional persistence rule.
Trait Implementations§
Source§impl Clone for StateComponentPolicy
impl Clone for StateComponentPolicy
Source§fn clone(&self) -> StateComponentPolicy
fn clone(&self) -> StateComponentPolicy
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 StateComponentPolicy
impl Debug for StateComponentPolicy
Source§impl<'de> Deserialize<'de> for StateComponentPolicy
impl<'de> Deserialize<'de> for StateComponentPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StateComponentPolicy
Source§impl Hash for StateComponentPolicy
impl Hash for StateComponentPolicy
Source§impl PartialEq for StateComponentPolicy
impl PartialEq for StateComponentPolicy
Source§impl Serialize for StateComponentPolicy
impl Serialize for StateComponentPolicy
impl StructuralPartialEq for StateComponentPolicy
Auto Trait Implementations§
impl Freeze for StateComponentPolicy
impl RefUnwindSafe for StateComponentPolicy
impl Send for StateComponentPolicy
impl Sync for StateComponentPolicy
impl Unpin for StateComponentPolicy
impl UnsafeUnpin for StateComponentPolicy
impl UnwindSafe for StateComponentPolicy
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