pub struct ArchitectureBoundaryValue<T> { /* private fields */ }Expand description
One architecture-tagged auxiliary boundary value.
The semantic role is assigned while the family-owned typed boundary is decomposed. Keeping it coupled to the tensor prevents a neutral executor from silently reassigning roles by positional zipping.
Implementations§
Source§impl<T> ArchitectureBoundaryValue<T>
impl<T> ArchitectureBoundaryValue<T>
Sourcepub fn new(
role: impl Into<String>,
tensor: T,
) -> Result<Self, ArchitectureBoundaryError>
pub fn new( role: impl Into<String>, tensor: T, ) -> Result<Self, ArchitectureBoundaryError>
Couples a non-empty architecture role to its exact tensor value.
Sourcepub fn into_parts(self) -> (String, T)
pub fn into_parts(self) -> (String, T)
Decomposes this value without cloning the tensor.
Trait Implementations§
Source§impl<T: Clone> Clone for ArchitectureBoundaryValue<T>
impl<T: Clone> Clone for ArchitectureBoundaryValue<T>
Source§fn clone(&self) -> ArchitectureBoundaryValue<T>
fn clone(&self) -> ArchitectureBoundaryValue<T>
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<T: Debug> Debug for ArchitectureBoundaryValue<T>
impl<T: Debug> Debug for ArchitectureBoundaryValue<T>
impl<T: Eq> Eq for ArchitectureBoundaryValue<T>
Source§impl<T: PartialEq> PartialEq for ArchitectureBoundaryValue<T>
impl<T: PartialEq> PartialEq for ArchitectureBoundaryValue<T>
impl<T: PartialEq> StructuralPartialEq for ArchitectureBoundaryValue<T>
Auto Trait Implementations§
impl<T> Freeze for ArchitectureBoundaryValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for ArchitectureBoundaryValue<T>where
T: RefUnwindSafe,
impl<T> Send for ArchitectureBoundaryValue<T>where
T: Send,
impl<T> Sync for ArchitectureBoundaryValue<T>where
T: Sync,
impl<T> Unpin for ArchitectureBoundaryValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for ArchitectureBoundaryValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ArchitectureBoundaryValue<T>where
T: UnwindSafe,
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