pub struct SemanticPlacementConstraint { /* private fields */ }Expand description
Backend-neutral placement requirement retained for runtime preparation.
Implementations§
Source§impl SemanticPlacementConstraint
impl SemanticPlacementConstraint
Sourcepub const fn same_as_input(input: usize) -> Self
pub const fn same_as_input(input: usize) -> Self
Require placement compatible with one operation input.
Sourcepub const fn kind(self) -> SemanticPlacementKind
pub const fn kind(self) -> SemanticPlacementKind
Return the placement kind.
Trait Implementations§
Source§impl Clone for SemanticPlacementConstraint
impl Clone for SemanticPlacementConstraint
Source§fn clone(&self) -> SemanticPlacementConstraint
fn clone(&self) -> SemanticPlacementConstraint
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 SemanticPlacementConstraint
impl Debug for SemanticPlacementConstraint
Source§impl Hash for SemanticPlacementConstraint
impl Hash for SemanticPlacementConstraint
Source§impl PartialEq for SemanticPlacementConstraint
impl PartialEq for SemanticPlacementConstraint
Source§fn eq(&self, other: &SemanticPlacementConstraint) -> bool
fn eq(&self, other: &SemanticPlacementConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SemanticPlacementConstraint
impl Eq for SemanticPlacementConstraint
impl StructuralPartialEq for SemanticPlacementConstraint
Auto Trait Implementations§
impl Freeze for SemanticPlacementConstraint
impl RefUnwindSafe for SemanticPlacementConstraint
impl Send for SemanticPlacementConstraint
impl Sync for SemanticPlacementConstraint
impl Unpin for SemanticPlacementConstraint
impl UnsafeUnpin for SemanticPlacementConstraint
impl UnwindSafe for SemanticPlacementConstraint
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