pub struct StaticFluentDomain(/* private fields */);Expand description
Static Fluent domain emitted by derive macros.
Implementations§
Source§impl StaticFluentDomain
impl StaticFluentDomain
Sourcepub fn try_new(
value: &'static str,
) -> Result<StaticFluentDomain, FluentIdentifierError>
pub fn try_new( value: &'static str, ) -> Result<StaticFluentDomain, FluentIdentifierError>
Validates and creates a static domain.
Sourcepub fn from_package_name(value: &'static str) -> StaticFluentDomain
pub fn from_package_name(value: &'static str) -> StaticFluentDomain
Validates and creates the default domain derived from CARGO_PKG_NAME.
Generated code uses this for implicit current-package domains because the package name is only known in the consuming crate.
pub fn as_str(self) -> &'static str
pub fn domain_name(self) -> FluentDomain
Trait Implementations§
Source§impl AsRef<str> for StaticFluentDomain
impl AsRef<str> for StaticFluentDomain
Source§impl Borrow<str> for StaticFluentDomain
impl Borrow<str> for StaticFluentDomain
Source§impl Clone for StaticFluentDomain
impl Clone for StaticFluentDomain
Source§fn clone(&self) -> StaticFluentDomain
fn clone(&self) -> StaticFluentDomain
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 StaticFluentDomain
Source§impl Debug for StaticFluentDomain
impl Debug for StaticFluentDomain
Source§impl Display for StaticFluentDomain
impl Display for StaticFluentDomain
impl Eq for StaticFluentDomain
Source§impl Hash for StaticFluentDomain
impl Hash for StaticFluentDomain
Source§impl PartialEq for StaticFluentDomain
impl PartialEq for StaticFluentDomain
Source§impl PartialEq<&str> for StaticFluentDomain
impl PartialEq<&str> for StaticFluentDomain
impl StructuralPartialEq for StaticFluentDomain
Auto Trait Implementations§
impl Freeze for StaticFluentDomain
impl RefUnwindSafe for StaticFluentDomain
impl Send for StaticFluentDomain
impl Sync for StaticFluentDomain
impl Unpin for StaticFluentDomain
impl UnsafeUnpin for StaticFluentDomain
impl UnwindSafe for StaticFluentDomain
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