pub struct FluentDomain(/* private fields */);Implementations§
Source§impl FluentDomain
impl FluentDomain
Sourcepub fn try_new(
value: impl Into<String>,
) -> Result<FluentDomain, FluentIdentifierError>
pub fn try_new( value: impl Into<String>, ) -> Result<FluentDomain, FluentIdentifierError>
Validates and creates the newtype.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for FluentDomain
impl AsRef<str> for FluentDomain
Source§impl Borrow<str> for FluentDomain
impl Borrow<str> for FluentDomain
Source§impl Clone for FluentDomain
impl Clone for FluentDomain
Source§fn clone(&self) -> FluentDomain
fn clone(&self) -> FluentDomain
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 moreSource§impl Debug for FluentDomain
impl Debug for FluentDomain
Source§impl<'de> Deserialize<'de> for FluentDomain
impl<'de> Deserialize<'de> for FluentDomain
Source§fn deserialize<D>(
deserializer: D,
) -> Result<FluentDomain, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<FluentDomain, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FluentDomain
impl Display for FluentDomain
impl Eq for FluentDomain
Source§impl Hash for FluentDomain
impl Hash for FluentDomain
Source§impl Ord for FluentDomain
impl Ord for FluentDomain
Source§fn cmp(&self, other: &FluentDomain) -> Ordering
fn cmp(&self, other: &FluentDomain) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FluentDomain
impl PartialEq for FluentDomain
Source§impl PartialOrd for FluentDomain
impl PartialOrd for FluentDomain
Source§impl Serialize for FluentDomain
impl Serialize for FluentDomain
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FluentDomain
Auto Trait Implementations§
impl Freeze for FluentDomain
impl RefUnwindSafe for FluentDomain
impl Send for FluentDomain
impl Sync for FluentDomain
impl Unpin for FluentDomain
impl UnsafeUnpin for FluentDomain
impl UnwindSafe for FluentDomain
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