pub enum LocalizedArg {
ConstString(Cow<'static, str>),
ConstNumber(f64),
VarString(WeakVar<String>),
VarNumber(WeakVar<f64>),
}Expand description
A concrete argument type for localization.
Variants§
Trait Implementations§
Source§impl Clone for LocalizedArg
impl Clone for LocalizedArg
Source§fn clone(&self) -> LocalizedArg
fn clone(&self) -> LocalizedArg
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 LocalizedArg
impl Debug for LocalizedArg
Source§impl From<&'static str> for LocalizedArg
impl From<&'static str> for LocalizedArg
Source§impl From<String> for LocalizedArg
impl From<String> for LocalizedArg
Source§impl From<f64> for LocalizedArg
impl From<f64> for LocalizedArg
Source§impl PartialEq for LocalizedArg
impl PartialEq for LocalizedArg
Source§fn eq(&self, other: &LocalizedArg) -> bool
fn eq(&self, other: &LocalizedArg) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocalizedArg
Auto Trait Implementations§
impl !RefUnwindSafe for LocalizedArg
impl !UnwindSafe for LocalizedArg
impl Freeze for LocalizedArg
impl Send for LocalizedArg
impl Sync for LocalizedArg
impl Unpin for LocalizedArg
impl UnsafeUnpin for LocalizedArg
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