pub struct BoundaryRoleContract { /* private fields */ }Expand description
One exact ordered tensor role on a boundary route.
Implementations§
Source§impl BoundaryRoleContract
impl BoundaryRoleContract
Sourcepub fn new(
role: impl Into<String>,
dtype: TensorDtype,
shape: Vec<usize>,
) -> Result<Self, CommunicationManifestError>
pub fn new( role: impl Into<String>, dtype: TensorDtype, shape: Vec<usize>, ) -> Result<Self, CommunicationManifestError>
Creates one concrete role contract.
Sourcepub fn symbolic(
role: impl Into<String>,
dtype: TensorDtype,
shape: Vec<BoundaryDimensionContract>,
) -> Result<Self, CommunicationManifestError>
pub fn symbolic( role: impl Into<String>, dtype: TensorDtype, shape: Vec<BoundaryDimensionContract>, ) -> Result<Self, CommunicationManifestError>
Creates one role with symbolic invocation and exact fixed dimensions.
Sourcepub const fn dtype(&self) -> &TensorDtype
pub const fn dtype(&self) -> &TensorDtype
Exact scalar dtype.
Sourcepub fn shape(&self) -> &[BoundaryDimensionContract]
pub fn shape(&self) -> &[BoundaryDimensionContract]
Per-axis admitted maximum shape.
Trait Implementations§
Source§impl Clone for BoundaryRoleContract
impl Clone for BoundaryRoleContract
Source§fn clone(&self) -> BoundaryRoleContract
fn clone(&self) -> BoundaryRoleContract
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 BoundaryRoleContract
impl Debug for BoundaryRoleContract
Source§impl<'de> Deserialize<'de> for BoundaryRoleContract
impl<'de> Deserialize<'de> for BoundaryRoleContract
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 BoundaryRoleContract
Source§impl PartialEq for BoundaryRoleContract
impl PartialEq for BoundaryRoleContract
Source§impl Serialize for BoundaryRoleContract
impl Serialize for BoundaryRoleContract
impl StructuralPartialEq for BoundaryRoleContract
Auto Trait Implementations§
impl Freeze for BoundaryRoleContract
impl RefUnwindSafe for BoundaryRoleContract
impl Send for BoundaryRoleContract
impl Sync for BoundaryRoleContract
impl Unpin for BoundaryRoleContract
impl UnsafeUnpin for BoundaryRoleContract
impl UnwindSafe for BoundaryRoleContract
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