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