Skip to main content

SchemeSpec

Struct SchemeSpec 

Source
pub struct SchemeSpec {
    pub id: SchemeId,
    pub name: String,
    pub category: SchemeCategory,
    pub premises: Vec<PremiseSlot>,
    pub conclusion: ConclusionTemplate,
    pub critical_questions: Vec<CriticalQuestion>,
    pub metadata: SchemeMetadata,
}
Expand description

The complete definition of one argumentation scheme.

A scheme is a recognisable pattern of reasoning with named premise slots, a conclusion template, and critical questions that probe its weak points. Schemes are compile-time data: each is constructed by a function in the crate::catalog module. Consumers instantiate schemes with concrete bindings via SchemeSpec::instantiate or crate::instance::instantiate.

Fields§

§id: SchemeId

Unique scheme id.

§name: String

Canonical name (e.g., “Argument from Expert Opinion”).

§category: SchemeCategory

Scheme category for catalog filtering.

§premises: Vec<PremiseSlot>

Named premise slots. Order matters — the first N are the scheme’s “core premises” as defined by Walton.

§conclusion: ConclusionTemplate

Conclusion template. References premise slot names via ?name syntax.

§critical_questions: Vec<CriticalQuestion>

Critical questions that probe the scheme’s weak points.

§metadata: SchemeMetadata

Bibliographic and classification metadata.

Implementations§

Source§

impl SchemeSpec

Source

pub fn instantiate( &self, bindings: &HashMap<String, String>, ) -> Result<SchemeInstance, Error>

Instantiate this scheme with concrete bindings. Convenience method that delegates to crate::instance::instantiate.

Source

pub fn key(&self) -> String

The scheme’s canonical name as a snake_case identifier suitable for lookup keys and affordance mapping.

Trait Implementations§

Source§

impl Clone for SchemeSpec

Source§

fn clone(&self) -> SchemeSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SchemeSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SchemeSpec

Source§

fn eq(&self, other: &SchemeSpec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for SchemeSpec

Source§

impl StructuralPartialEq for SchemeSpec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.