pub enum RelationSemanticClass {
Structural,
Causal,
Motivational,
Procedural,
Evidential,
Constraint,
}Variants§
Implementations§
Source§impl RelationSemanticClass
impl RelationSemanticClass
pub fn parse(value: &str) -> Result<Self, DomainError>
pub fn as_str(&self) -> &'static str
Sourcepub fn salience_rank(&self) -> u8
pub fn salience_rank(&self) -> u8
Returns a salience rank for token-budget packing.
Lower values are higher priority. Explanatory classes (causal, motivational, evidential, constraint) rank before structural and procedural because the paper’s core claim is that explanatory relationships carry the dominant signal for diagnosis and recovery.
Trait Implementations§
Source§impl Clone for RelationSemanticClass
impl Clone for RelationSemanticClass
Source§fn clone(&self) -> RelationSemanticClass
fn clone(&self) -> RelationSemanticClass
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 moreimpl Copy for RelationSemanticClass
Source§impl Debug for RelationSemanticClass
impl Debug for RelationSemanticClass
Source§impl<'de> Deserialize<'de> for RelationSemanticClass
impl<'de> Deserialize<'de> for RelationSemanticClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RelationSemanticClass
Source§impl Hash for RelationSemanticClass
impl Hash for RelationSemanticClass
Source§impl PartialEq for RelationSemanticClass
impl PartialEq for RelationSemanticClass
Source§impl Serialize for RelationSemanticClass
impl Serialize for RelationSemanticClass
impl StructuralPartialEq for RelationSemanticClass
Auto Trait Implementations§
impl Freeze for RelationSemanticClass
impl RefUnwindSafe for RelationSemanticClass
impl Send for RelationSemanticClass
impl Sync for RelationSemanticClass
impl Unpin for RelationSemanticClass
impl UnsafeUnpin for RelationSemanticClass
impl UnwindSafe for RelationSemanticClass
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