pub enum SemanticAdTransformError {
ActivityArity {
role: SemanticTransformRole,
field: &'static str,
expected: usize,
actual: usize,
},
UnsupportedCore {
role: SemanticTransformRole,
op: String,
},
UnsupportedOperationVariant {
role: SemanticTransformRole,
},
UnsupportedMetadata {
role: SemanticTransformRole,
message: String,
},
Query(ProgramQueryError),
Build(ProgramBuildError),
Extension(SemanticAdError),
Finish(ProgramFinishError),
Cache(Error),
}Expand description
Failures produced by whole-program semantic AD.
Variants§
ActivityArity
An activity mask did not match the corresponding ordered value list.
Fields
§
role: SemanticTransformRoleTransform role.
UnsupportedCore
An active core operation has not yet been admitted to semantic AD.
UnsupportedOperationVariant
A future semantic operation variant is unknown to this transform.
Fields
§
role: SemanticTransformRoleTransform role.
UnsupportedMetadata
Active derivative metadata is outside the admitted exact-shape subset.
Query(ProgramQueryError)
Source-program metadata could not be queried.
Build(ProgramBuildError)
Destination semantic-program construction failed.
Extension(SemanticAdError)
An extension-owned semantic AD rule failed.
Finish(ProgramFinishError)
The transformed program could not be frozen atomically.
Cache(Error)
The semantic AD transform cache could not be accessed.
Trait Implementations§
Source§impl Debug for SemanticAdTransformError
impl Debug for SemanticAdTransformError
Source§impl Display for SemanticAdTransformError
impl Display for SemanticAdTransformError
Source§impl Error for SemanticAdTransformError
impl Error for SemanticAdTransformError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ProgramBuildError> for SemanticAdTransformError
impl From<ProgramBuildError> for SemanticAdTransformError
Source§impl From<ProgramFinishError> for SemanticAdTransformError
impl From<ProgramFinishError> for SemanticAdTransformError
Source§impl From<ProgramQueryError> for SemanticAdTransformError
impl From<ProgramQueryError> for SemanticAdTransformError
Source§impl From<SemanticAdError> for SemanticAdTransformError
impl From<SemanticAdError> for SemanticAdTransformError
Source§fn from(source: SemanticAdError) -> Self
fn from(source: SemanticAdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SemanticAdTransformError
impl !RefUnwindSafe for SemanticAdTransformError
impl Send for SemanticAdTransformError
impl Sync for SemanticAdTransformError
impl Unpin for SemanticAdTransformError
impl UnsafeUnpin for SemanticAdTransformError
impl !UnwindSafe for SemanticAdTransformError
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> 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