pub enum PlinkoDirection {
Left,
Right,
}Expand description
Шаг шарика в мини-игре Plinko: на каждом ряду колышков шарик уходит влево или вправо. Путь целиком решает сервер, клиент только проигрывает анимацию.
Variants§
Trait Implementations§
Source§impl Clone for PlinkoDirection
impl Clone for PlinkoDirection
Source§fn clone(&self) -> PlinkoDirection
fn clone(&self) -> PlinkoDirection
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 PlinkoDirection
impl Debug for PlinkoDirection
Source§impl<'de> Deserialize<'de> for PlinkoDirection
impl<'de> Deserialize<'de> for PlinkoDirection
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 Hash for PlinkoDirection
impl Hash for PlinkoDirection
Source§impl JsonSchema for PlinkoDirection
impl JsonSchema for PlinkoDirection
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 PartialEq for PlinkoDirection
impl PartialEq for PlinkoDirection
Source§impl Serialize for PlinkoDirection
impl Serialize for PlinkoDirection
Source§impl Tsify for PlinkoDirection
impl Tsify for PlinkoDirection
const DECL: &'static str = "/**\n * \u{428}\u{430}\u{433} \u{448}\u{430}\u{440}\u{438}\u{43a}\u{430} \u{432} \u{43c}\u{438}\u{43d}\u{438}-\u{438}\u{433}\u{440}\u{435} Plinko: \u{43d}\u{430} \u{43a}\u{430}\u{436}\u{434}\u{43e}\u{43c} \u{440}\u{44f}\u{434}\u{443} \u{43a}\u{43e}\u{43b}\u{44b}\u{448}\u{43a}\u{43e}\u{432} \u{448}\u{430}\u{440}\u{438}\u{43a} \u{443}\u{445}\u{43e}\u{434}\u{438}\u{442} \u{432}\u{43b}\u{435}\u{432}\u{43e}\n * \u{438}\u{43b}\u{438} \u{432}\u{43f}\u{440}\u{430}\u{432}\u{43e}. \u{41f}\u{443}\u{442}\u{44c} \u{446}\u{435}\u{43b}\u{438}\u{43a}\u{43e}\u{43c} \u{440}\u{435}\u{448}\u{430}\u{435}\u{442} \u{441}\u{435}\u{440}\u{432}\u{435}\u{440}, \u{43a}\u{43b}\u{438}\u{435}\u{43d}\u{442} \u{442}\u{43e}\u{43b}\u{44c}\u{43a}\u{43e} \u{43f}\u{440}\u{43e}\u{438}\u{433}\u{440}\u{44b}\u{432}\u{430}\u{435}\u{442} \u{430}\u{43d}\u{438}\u{43c}\u{430}\u{446}\u{438}\u{44e}.\n */\nexport type PlinkoDirection = \"Left\" | \"Right\";"
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>
impl Copy for PlinkoDirection
impl Eq for PlinkoDirection
impl StructuralPartialEq for PlinkoDirection
Auto Trait Implementations§
impl Freeze for PlinkoDirection
impl RefUnwindSafe for PlinkoDirection
impl Send for PlinkoDirection
impl Sync for PlinkoDirection
impl Unpin for PlinkoDirection
impl UnwindSafe for PlinkoDirection
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