pub struct BackendDescriptor {
pub id: BackendId,
pub target: ExecutionTarget,
}Expand description
Provider identity only. It deliberately contains no operation booleans.
Fields§
§id: BackendIdStable implementation identity.
target: ExecutionTargetHardware class used by execution policy.
Implementations§
Source§impl BackendDescriptor
impl BackendDescriptor
Sourcepub const fn new(id: BackendId, target: ExecutionTarget) -> BackendDescriptor
pub const fn new(id: BackendId, target: ExecutionTarget) -> BackendDescriptor
Construct provider identity metadata.
Trait Implementations§
Source§impl Clone for BackendDescriptor
impl Clone for BackendDescriptor
Source§fn clone(&self) -> BackendDescriptor
fn clone(&self) -> BackendDescriptor
Returns a copy of the value. Read more
1.0.0 · 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 BackendDescriptor
impl Debug for BackendDescriptor
Source§impl PartialEq for BackendDescriptor
impl PartialEq for BackendDescriptor
impl Copy for BackendDescriptor
impl Eq for BackendDescriptor
impl StructuralPartialEq for BackendDescriptor
Auto Trait Implementations§
impl Freeze for BackendDescriptor
impl RefUnwindSafe for BackendDescriptor
impl Send for BackendDescriptor
impl Sync for BackendDescriptor
impl Unpin for BackendDescriptor
impl UnwindSafe for BackendDescriptor
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,
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