pub enum LightsaberType {
Red,
Green,
Blue,
}Expand description
The lightsaber type enum from the spec
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LightsaberType
impl Clone for LightsaberType
Source§fn clone(&self) -> LightsaberType
fn clone(&self) -> LightsaberType
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 LightsaberType
impl Debug for LightsaberType
Source§impl<'de> Deserialize<'de> for LightsaberType
impl<'de> Deserialize<'de> for LightsaberType
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 LightsaberType
impl Hash for LightsaberType
Source§impl PartialEq for LightsaberType
impl PartialEq for LightsaberType
Source§impl Serialize for LightsaberType
impl Serialize for LightsaberType
Source§impl VariantArray for LightsaberType
impl VariantArray for LightsaberType
impl Copy for LightsaberType
impl Eq for LightsaberType
impl StructuralPartialEq for LightsaberType
Auto Trait Implementations§
impl Freeze for LightsaberType
impl RefUnwindSafe for LightsaberType
impl Send for LightsaberType
impl Sync for LightsaberType
impl Unpin for LightsaberType
impl UnwindSafe for LightsaberType
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