pub enum ParseValue {
Bool(bool),
String(String),
MultiBool(Vec<bool>),
MultiString(Vec<String>),
}
Variants§
Implementations§
Source§impl ParseValue
impl ParseValue
pub fn try_as_bool(self) -> Option<bool>
pub const fn try_as_bool_ref(&self) -> Option<&bool>
pub fn try_as_bool_mut(&mut self) -> Option<&mut bool>
pub fn try_as_string(self) -> Option<String>
pub const fn try_as_string_ref(&self) -> Option<&String>
pub fn try_as_string_mut(&mut self) -> Option<&mut String>
pub fn try_as_multi_bool(self) -> Option<Vec<bool>>
pub const fn try_as_multi_bool_ref(&self) -> Option<&Vec<bool>>
pub fn try_as_multi_bool_mut(&mut self) -> Option<&mut Vec<bool>>
pub fn try_as_multi_string(self) -> Option<Vec<String>>
pub const fn try_as_multi_string_ref(&self) -> Option<&Vec<String>>
pub fn try_as_multi_string_mut(&mut self) -> Option<&mut Vec<String>>
Trait Implementations§
Source§impl Debug for ParseValue
impl Debug for ParseValue
Auto Trait Implementations§
impl Freeze for ParseValue
impl RefUnwindSafe for ParseValue
impl Send for ParseValue
impl Sync for ParseValue
impl Unpin for ParseValue
impl UnwindSafe for ParseValue
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more