Enum etterna::Skillset8 [−][src]
Skillsets enum, including overall
Variants
Implementations
impl Skillset8
[src]
pub fn from_user_input(input: &str) -> Option<Self>
[src]
Converts user input into a skillset variant, case-insensitively. Most community-accepted spellings of the skillsets are recognized.
Returns None
If the given user input can’t be parsed.
Example
assert_eq!(Skillset8::from_user_input("js"), Some(Skillset8::Jumpstream)); assert_eq!(Skillset8::from_user_input("Jacks"), Some(Skillset8::Jackspeed)); assert_eq!(Skillset8::from_user_input("JACKSPEED"), Some(Skillset8::Jackspeed)); assert_eq!(Skillset8::from_user_input("handstreams"), None);
pub fn list() -> &'static [Self]
[src]
Get a list of all skillsets
Useful for tasks that require operating on all skillsets individually
for &ss in Skillset8::list() { println!("{}: {}", ss, skillsets.get(ss)); }
pub fn iter() -> impl Iterator<Item = Self>
[src]
Iterate all skillsets
Useful for tasks that require operating on all skillsets individually
for ss in Skillset8::iter() { println!("{}: {}", ss, skillsets.get(ss)); }
pub fn into_skillset7(self) -> Option<Skillset7>
[src]
Convert into a Skillset7, converting Overall into None along the way.
assert_eq!(Skillset8::Stream.into_skillset7(), Some(Skillset7::Stream)); assert_eq!(Skillset8::Overall.into_skillset7(), None);
Trait Implementations
impl Clone for Skillset8
[src]
impl Copy for Skillset8
[src]
impl Debug for Skillset8
[src]
impl Display for Skillset8
[src]
impl Eq for Skillset8
[src]
impl From<Skillset7> for Skillset8
[src]
impl Hash for Skillset8
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Skillset8
[src]
fn cmp(&self, other: &Skillset8) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Skillset8> for Skillset8
[src]
fn eq(&self, other: &Skillset8) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Skillset8> for Skillset8
[src]
fn partial_cmp(&self, other: &Skillset8) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Skillset8
[src]
impl StructuralPartialEq for Skillset8
[src]
impl TryFrom<Skillset8> for Skillset7
[src]
Auto Trait Implementations
impl RefUnwindSafe for Skillset8
impl Send for Skillset8
impl Sync for Skillset8
impl Unpin for Skillset8
impl UnwindSafe for Skillset8
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,