pub struct DTypeCapability {
pub dtype: DType,
pub roles: ValueRoles,
pub constraints: DTypeConstraints,
}Expand description
One dtype admitted in explicitly listed graph roles.
Fields§
§dtype: DType§roles: ValueRoles§constraints: DTypeConstraintsImplementations§
Source§impl DTypeCapability
impl DTypeCapability
pub const fn new(dtype: DType, roles: ValueRoles) -> Self
pub const fn constrained( dtype: DType, roles: ValueRoles, constraints: DTypeConstraints, ) -> Self
Trait Implementations§
Source§impl Clone for DTypeCapability
impl Clone for DTypeCapability
Source§fn clone(&self) -> DTypeCapability
fn clone(&self) -> DTypeCapability
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 moreimpl Copy for DTypeCapability
Source§impl Debug for DTypeCapability
impl Debug for DTypeCapability
impl Eq for DTypeCapability
Source§impl PartialEq for DTypeCapability
impl PartialEq for DTypeCapability
Source§fn eq(&self, other: &DTypeCapability) -> bool
fn eq(&self, other: &DTypeCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DTypeCapability
Auto Trait Implementations§
impl Freeze for DTypeCapability
impl RefUnwindSafe for DTypeCapability
impl Send for DTypeCapability
impl Sync for DTypeCapability
impl Unpin for DTypeCapability
impl UnsafeUnpin for DTypeCapability
impl UnwindSafe for DTypeCapability
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