[−][src]Struct cardpack::fluent::fluent_name::FluentName
FluentName is the primary implementation of the Named trait.
FluentName represents the fluent template key for a card entity such as a Suit or Rank,
which in turn determines its long name in any represented language, the short letter
used to display an index, and the default weight for the if it is instantiated via
::new()
. A FluentName must have a corresponding entries in the fluent templates for
weight, long, and index.
Implementations
impl FluentName
[src]
pub fn new(name: &'static str) -> FluentName
[src]
Trait Implementations
impl Clone for FluentName
[src]
fn clone(&self) -> FluentName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FluentName
[src]
impl Debug for FluentName
[src]
impl Default for FluentName
[src]
fn default() -> FluentName
[src]
impl Display for FluentName
[src]
impl Eq for FluentName
[src]
impl Hash for FluentName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Named for FluentName
[src]
fn name(&self) -> &str
[src]
fn fluent_value(&self, key_section: &str, lid: &LanguageIdentifier) -> String
[src]
fn index(&self, lid: &LanguageIdentifier) -> String
[src]
fn index_default(&self) -> String
[src]
fn long(&self, lid: &LanguageIdentifier) -> String
[src]
fn long_default(&self) -> String
[src]
fn default_weight(&self) -> isize
[src]
impl Ord for FluentName
[src]
fn cmp(&self, other: &FluentName) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<FluentName> for FluentName
[src]
fn eq(&self, other: &FluentName) -> bool
[src]
fn ne(&self, other: &FluentName) -> bool
[src]
impl PartialOrd<FluentName> for FluentName
[src]
fn partial_cmp(&self, other: &FluentName) -> Option<Ordering>
[src]
fn lt(&self, other: &FluentName) -> bool
[src]
fn le(&self, other: &FluentName) -> bool
[src]
fn gt(&self, other: &FluentName) -> bool
[src]
fn ge(&self, other: &FluentName) -> bool
[src]
impl StructuralEq for FluentName
[src]
impl StructuralPartialEq for FluentName
[src]
Auto Trait Implementations
impl RefUnwindSafe for FluentName
impl Send for FluentName
impl Sync for FluentName
impl Unpin for FluentName
impl UnwindSafe for FluentName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: PartialEq<T> + Any,
T: PartialEq<T> + Any,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
pub fn as_any(&self) -> &(dyn Any + 'static)
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,