pub enum StoneSocketSlot {
Trigger,
RealEffect,
FantasyEffect,
}Expand description
One of the three sockets a two-sided equipment slot carries.
The trigger is shared: a slot has exactly one trigger driving both sides, and only the effect it fires changes when the world flips.
Trigger— the slot’s single shared trigger.RealEffect— the effect fired while the Real side is active.FantasyEffect— the effect fired while the Fantasy side is active.
Variant docs live here rather than on the variants themselves: a documented
variant makes the admin schema generate a oneOf of one-value enums instead
of a plain picker.
Variants§
Implementations§
Source§impl StoneSocketSlot
impl StoneSocketSlot
Sourcepub const fn accepts(self) -> StoneKind
pub const fn accepts(self) -> StoneKind
The collection a stone must come from to fit this socket. A Trigger Stone never goes in an effect socket and vice versa.
Sourcepub const fn world_side(self) -> Option<WorldSide>
pub const fn world_side(self) -> Option<WorldSide>
The world side this socket answers for, or None for the shared
trigger.
Sourcepub const fn effect_for(side: WorldSide) -> Self
pub const fn effect_for(side: WorldSide) -> Self
The effect socket that is live on side.
Trait Implementations§
Source§impl Clone for StoneSocketSlot
impl Clone for StoneSocketSlot
Source§fn clone(&self) -> StoneSocketSlot
fn clone(&self) -> StoneSocketSlot
Returns a copy of the value. Read more
1.0.0 · 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 StoneSocketSlot
impl Debug for StoneSocketSlot
Source§impl<'de> Deserialize<'de> for StoneSocketSlot
impl<'de> Deserialize<'de> for StoneSocketSlot
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 Display for StoneSocketSlot
impl Display for StoneSocketSlot
Source§impl From<StoneSocketSlot> for JsValuewhere
StoneSocketSlot: Serialize,
impl From<StoneSocketSlot> for JsValuewhere
StoneSocketSlot: Serialize,
Source§fn from(value: StoneSocketSlot) -> Self
fn from(value: StoneSocketSlot) -> Self
Converts to this type from the input type.
Source§impl FromStr for StoneSocketSlot
impl FromStr for StoneSocketSlot
Source§impl FromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
impl FromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
Source§impl Hash for StoneSocketSlot
impl Hash for StoneSocketSlot
Source§impl IntoEnumIterator for StoneSocketSlot
impl IntoEnumIterator for StoneSocketSlot
type Iterator = StoneSocketSlotIter
fn iter() -> StoneSocketSlotIter ⓘ
Source§impl IntoWasmAbi for StoneSocketSlotwhere
StoneSocketSlot: Serialize,
impl IntoWasmAbi for StoneSocketSlotwhere
StoneSocketSlot: Serialize,
Source§impl JsonSchema for StoneSocketSlot
impl JsonSchema for StoneSocketSlot
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl OptionFromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for StoneSocketSlotwhere
StoneSocketSlot: Serialize,
impl OptionIntoWasmAbi for StoneSocketSlotwhere
StoneSocketSlot: Serialize,
Source§impl PartialEq for StoneSocketSlot
impl PartialEq for StoneSocketSlot
Source§impl RefFromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<StoneSocketSlot>
type Anchor = SelfOwner<StoneSocketSlot>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for StoneSocketSlot
impl Serialize for StoneSocketSlot
Source§impl TryFrom<&str> for StoneSocketSlot
impl TryFrom<&str> for StoneSocketSlot
Source§impl Tsify for StoneSocketSlot
impl Tsify for StoneSocketSlot
const DECL: &'static str = "/**\n * One of the three sockets a two-sided equipment slot carries.\n *\n * The trigger is shared: a slot has exactly one trigger driving both sides,\n * and only the effect it fires changes when the world flips.\n *\n * * `Trigger` \u{2014} the slot\\\'s single shared trigger.\n * * `RealEffect` \u{2014} the effect fired while the Real side is active.\n * * `FantasyEffect` \u{2014} the effect fired while the Fantasy side is active.\n *\n * Variant docs live here rather than on the variants themselves: a documented\n * variant makes the admin schema generate a `oneOf` of one-value enums instead\n * of a plain picker.\n */\nexport type StoneSocketSlot = \"Trigger\" | \"RealEffect\" | \"FantasyEffect\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for StoneSocketSlotwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for StoneSocketSlotwhere
StoneSocketSlot: Serialize,
impl VectorIntoWasmAbi for StoneSocketSlotwhere
StoneSocketSlot: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for StoneSocketSlot
impl WasmDescribeVector for StoneSocketSlot
impl Copy for StoneSocketSlot
impl Eq for StoneSocketSlot
impl StructuralPartialEq for StoneSocketSlot
Auto Trait Implementations§
impl Freeze for StoneSocketSlot
impl RefUnwindSafe for StoneSocketSlot
impl Send for StoneSocketSlot
impl Sync for StoneSocketSlot
impl Unpin for StoneSocketSlot
impl UnwindSafe for StoneSocketSlot
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.