pub struct Legality {
pub compile_ready: bool,
pub native_kinds: usize,
pub common_ir_kinds: usize,
pub rewritten_kinds: usize,
pub unsupported_kinds: usize,
}Expand description
Execution-legality rollup against a backend’s real op claim.
Only present when the backend is compiled into the build. Resolved
statically from the registry — no live driver is needed, since backend
factories build unit structs and supported_ops() is a const.
Fields§
§compile_ready: boolTrue when no op is left unsupported after rewrite.
native_kinds: usize§common_ir_kinds: usize§rewritten_kinds: usize§unsupported_kinds: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Legality
impl RefUnwindSafe for Legality
impl Send for Legality
impl Sync for Legality
impl Unpin for Legality
impl UnsafeUnpin for Legality
impl UnwindSafe for Legality
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