pub struct StaticFluentArgumentName(/* private fields */);Expand description
Static Fluent argument name emitted by derive macros.
Implementations§
Source§impl StaticFluentArgumentName
impl StaticFluentArgumentName
Sourcepub fn try_new(
value: &'static str,
) -> Result<StaticFluentArgumentName, FluentIdentifierError>
pub fn try_new( value: &'static str, ) -> Result<StaticFluentArgumentName, FluentIdentifierError>
Validates and creates a static argument name.
pub fn as_str(self) -> &'static str
pub fn argument_name(self) -> FluentArgumentName
Trait Implementations§
Source§impl AsRef<str> for StaticFluentArgumentName
impl AsRef<str> for StaticFluentArgumentName
Source§impl Borrow<str> for StaticFluentArgumentName
impl Borrow<str> for StaticFluentArgumentName
Source§impl Clone for StaticFluentArgumentName
impl Clone for StaticFluentArgumentName
Source§fn clone(&self) -> StaticFluentArgumentName
fn clone(&self) -> StaticFluentArgumentName
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 StaticFluentArgumentName
Source§impl Debug for StaticFluentArgumentName
impl Debug for StaticFluentArgumentName
Source§impl Display for StaticFluentArgumentName
impl Display for StaticFluentArgumentName
impl Eq for StaticFluentArgumentName
Source§impl Hash for StaticFluentArgumentName
impl Hash for StaticFluentArgumentName
Source§impl PartialEq for StaticFluentArgumentName
impl PartialEq for StaticFluentArgumentName
Source§impl PartialEq<&str> for StaticFluentArgumentName
impl PartialEq<&str> for StaticFluentArgumentName
impl StructuralPartialEq for StaticFluentArgumentName
Auto Trait Implementations§
impl Freeze for StaticFluentArgumentName
impl RefUnwindSafe for StaticFluentArgumentName
impl Send for StaticFluentArgumentName
impl Sync for StaticFluentArgumentName
impl Unpin for StaticFluentArgumentName
impl UnsafeUnpin for StaticFluentArgumentName
impl UnwindSafe for StaticFluentArgumentName
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