Skip to navigation

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub enum SkillDuplicatePolicy {
Reject,
LastWins,
FirstWins,
}

How two skills.directories entries that provide the same skill name resolve.

Variants

Reject

Reject

Start fails, naming both entries.

LastWins

LastWins

The later entry’s skill loads.

FirstWins

FirstWins

The earlier entry’s skill loads.

Implementations

impl SkillDuplicatePolicy

impl SkillDuplicatePolicy

as_str

pub const fn as_str(self) -> &'static str

Stable wire name for this policy.

Trait Implementations

impl Clone for SkillDuplicatePolicy

impl Clone for SkillDuplicatePolicy

clone

fn clone(&self) -> Self

clone_from

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

impl Copy for SkillDuplicatePolicy

impl Copy for SkillDuplicatePolicy

impl Debug for SkillDuplicatePolicy

impl Debug for SkillDuplicatePolicy

fmt

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

impl<'de> Deserialize<'de> for SkillDuplicatePolicy

impl<'de> Deserialize<'de> for SkillDuplicatePolicy

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl Eq for SkillDuplicatePolicy

impl Eq for SkillDuplicatePolicy

impl Hash for SkillDuplicatePolicy

impl Hash for SkillDuplicatePolicy

hash

fn hash<__H: Hasher>(&self, state: &mut __H)

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl JsonSchema for SkillDuplicatePolicy

impl JsonSchema for SkillDuplicatePolicy

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl Ord for SkillDuplicatePolicy

impl Ord for SkillDuplicatePolicy

cmp

fn cmp(&self, other: &Self) -> Ordering

max

fn max(self, other: Self) -> Selfwhere
    Self: Sized,

min

fn min(self, other: Self) -> Selfwhere
    Self: Sized,

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: Sized,

clamp_to

fn clamp_to<R>(self, range: R) -> Selfwhere
    Self: Sized,
    R: ClampBounds<Self>,

impl PartialEq for SkillDuplicatePolicy

impl PartialEq for SkillDuplicatePolicy

eq

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

ne

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

impl PartialOrd for SkillDuplicatePolicy

impl PartialOrd for SkillDuplicatePolicy

partial_cmp

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

lt

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

le

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

gt

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

ge

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

impl Serialize for SkillDuplicatePolicy

impl Serialize for SkillDuplicatePolicy

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for SkillDuplicatePolicy

impl StructuralPartialEq for SkillDuplicatePolicy