pub struct EntryValue<'a> { /* private fields */ }Implementations§
Source§impl<'a> EntryValue<'a>
impl<'a> EntryValue<'a>
Sourcepub fn as_boolean(self) -> Result<bool, ValueBoolError>
pub fn as_boolean(self) -> Result<bool, ValueBoolError>
Try to regard the entry value as a boolean
Sourcepub fn as_numeric(self) -> Result<f32, ValueNumericError>
pub fn as_numeric(self) -> Result<f32, ValueNumericError>
Try to regard the entry value as a numeric value
Sourcepub fn as_string(&'a self) -> Result<&'a str, ValueStringError>
pub fn as_string(&'a self) -> Result<&'a str, ValueStringError>
Try to regard the entry value as a string
Sourcepub fn as_localestring(&'a self) -> &'a str
pub fn as_localestring(&'a self) -> &'a str
Try to regard the entry value as a locale string
Trait Implementations§
Source§impl<'a> Clone for EntryValue<'a>
impl<'a> Clone for EntryValue<'a>
Source§fn clone(&self) -> EntryValue<'a>
fn clone(&self) -> EntryValue<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for EntryValue<'a>
impl<'a> Debug for EntryValue<'a>
Source§impl<'a> PartialEq for EntryValue<'a>
impl<'a> PartialEq for EntryValue<'a>
impl<'a> StructuralPartialEq for EntryValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntryValue<'a>
impl<'a> RefUnwindSafe for EntryValue<'a>
impl<'a> Send for EntryValue<'a>
impl<'a> Sync for EntryValue<'a>
impl<'a> Unpin for EntryValue<'a>
impl<'a> UnwindSafe for EntryValue<'a>
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