pub struct StaticFluentVariantKey(/* private fields */);Expand description
Static Fluent select variant key emitted by derive macros.
Implementations§
Source§impl StaticFluentVariantKey
impl StaticFluentVariantKey
Sourcepub fn try_new(
value: &'static str,
) -> Result<StaticFluentVariantKey, FluentIdentifierError>
pub fn try_new( value: &'static str, ) -> Result<StaticFluentVariantKey, FluentIdentifierError>
Validates and creates a static select variant key.
pub fn as_str(self) -> &'static str
pub fn variant_key(self) -> FluentVariantKey
Trait Implementations§
Source§impl AsRef<str> for StaticFluentVariantKey
impl AsRef<str> for StaticFluentVariantKey
Source§impl Borrow<str> for StaticFluentVariantKey
impl Borrow<str> for StaticFluentVariantKey
Source§impl Clone for StaticFluentVariantKey
impl Clone for StaticFluentVariantKey
Source§fn clone(&self) -> StaticFluentVariantKey
fn clone(&self) -> StaticFluentVariantKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StaticFluentVariantKey
Source§impl Debug for StaticFluentVariantKey
impl Debug for StaticFluentVariantKey
Source§impl Display for StaticFluentVariantKey
impl Display for StaticFluentVariantKey
impl Eq for StaticFluentVariantKey
Source§impl Hash for StaticFluentVariantKey
impl Hash for StaticFluentVariantKey
Source§impl PartialEq for StaticFluentVariantKey
impl PartialEq for StaticFluentVariantKey
Source§impl PartialEq<&str> for StaticFluentVariantKey
impl PartialEq<&str> for StaticFluentVariantKey
impl StructuralPartialEq for StaticFluentVariantKey
Auto Trait Implementations§
impl Freeze for StaticFluentVariantKey
impl RefUnwindSafe for StaticFluentVariantKey
impl Send for StaticFluentVariantKey
impl Sync for StaticFluentVariantKey
impl Unpin for StaticFluentVariantKey
impl UnsafeUnpin for StaticFluentVariantKey
impl UnwindSafe for StaticFluentVariantKey
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