pub enum BrainDeclError {
Show 13 variants
Duplicate {
what: &'static str,
id: String,
},
UnknownTopic {
owner: String,
topic: TopicId,
},
UnknownKind {
owner: String,
kind: FactKindId,
},
Statement {
kind: FactKindId,
source: StatementError,
},
UnknownPlaceholder {
kind: FactKindId,
name: String,
},
EmptyIdentity(FactKindId),
UnknownIdentityField {
kind: FactKindId,
name: String,
},
UnknownMaterialityField {
kind: FactKindId,
name: String,
},
MissingPromptVersion(FactKindId),
WeightOutOfRange {
name: String,
value: f64,
},
ZeroHalfLife,
ZeroLimit {
name: &'static str,
},
NegativeScore {
name: &'static str,
value: f64,
},
}Expand description
A declaration set that is internally inconsistent.
Variants§
Duplicate
UnknownTopic
UnknownKind
Statement
UnknownPlaceholder
EmptyIdentity(FactKindId)
UnknownIdentityField
UnknownMaterialityField
MissingPromptVersion(FactKindId)
WeightOutOfRange
ZeroHalfLife
ZeroLimit
NegativeScore
Trait Implementations§
Source§impl Clone for BrainDeclError
impl Clone for BrainDeclError
Source§impl Debug for BrainDeclError
impl Debug for BrainDeclError
Source§impl Display for BrainDeclError
impl Display for BrainDeclError
Source§impl Error for BrainDeclError
impl Error for BrainDeclError
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 PartialEq for BrainDeclError
impl PartialEq for BrainDeclError
impl StructuralPartialEq for BrainDeclError
Auto Trait Implementations§
impl Freeze for BrainDeclError
impl RefUnwindSafe for BrainDeclError
impl Send for BrainDeclError
impl Sync for BrainDeclError
impl Unpin for BrainDeclError
impl UnsafeUnpin for BrainDeclError
impl UnwindSafe for BrainDeclError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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