pub enum PatternKind {
Technical,
Preference,
Fact,
Procedure,
Behavioral,
}Expand description
The kind of knowledge a pattern represents.
Variants§
Technical
Technical knowledge (code patterns, architecture, tools)
Preference
User preference (language, style, format)
Fact
Factual knowledge (server addresses, config values)
Procedure
Procedural knowledge (how-to steps, workflows)
Behavioral
Behavioral rules (do/don’t rules for interaction)
Trait Implementations§
Source§impl Clone for PatternKind
impl Clone for PatternKind
Source§fn clone(&self) -> PatternKind
fn clone(&self) -> PatternKind
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 moreSource§impl Debug for PatternKind
impl Debug for PatternKind
Source§impl Default for PatternKind
impl Default for PatternKind
Source§fn default() -> PatternKind
fn default() -> PatternKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatternKind
impl<'de> Deserialize<'de> for PatternKind
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
Source§impl PartialEq for PatternKind
impl PartialEq for PatternKind
Source§fn eq(&self, other: &PatternKind) -> bool
fn eq(&self, other: &PatternKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PatternKind
impl Serialize for PatternKind
impl Copy for PatternKind
impl StructuralPartialEq for PatternKind
Auto Trait Implementations§
impl Freeze for PatternKind
impl RefUnwindSafe for PatternKind
impl Send for PatternKind
impl Sync for PatternKind
impl Unpin for PatternKind
impl UnsafeUnpin for PatternKind
impl UnwindSafe for PatternKind
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