Enum beancount_parser_lima::types::SimpleValue
source · pub enum SimpleValue<'a> {
String(&'a str),
Currency(Currency<'a>),
Account(Account<'a>),
Tag(Tag<'a>),
Link(Link<'a>),
Date(Date),
Bool(bool),
None,
Expr(ExprValue),
}
Expand description
One possible type of MetaValue.
Variants§
String(&'a str)
Currency(Currency<'a>)
Account(Account<'a>)
Tag(Tag<'a>)
Link(Link<'a>)
Date(Date)
Bool(bool)
None
Expr(ExprValue)
Trait Implementations§
source§impl<'a> Clone for SimpleValue<'a>
impl<'a> Clone for SimpleValue<'a>
source§fn clone(&self) -> SimpleValue<'a>
fn clone(&self) -> SimpleValue<'a>
Returns a copy 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 SimpleValue<'a>
impl<'a> Debug for SimpleValue<'a>
source§impl<'a> Display for SimpleValue<'a>
impl<'a> Display for SimpleValue<'a>
source§impl<'a> ElementType for SimpleValue<'a>
impl<'a> ElementType for SimpleValue<'a>
fn element_type(&self) -> &'static str
source§impl<'a> PartialEq for SimpleValue<'a>
impl<'a> PartialEq for SimpleValue<'a>
source§fn eq(&self, other: &SimpleValue<'a>) -> bool
fn eq(&self, other: &SimpleValue<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for SimpleValue<'a>
impl<'a> StructuralPartialEq for SimpleValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for SimpleValue<'a>
impl<'a> RefUnwindSafe for SimpleValue<'a>
impl<'a> Send for SimpleValue<'a>
impl<'a> Sync for SimpleValue<'a>
impl<'a> Unpin for SimpleValue<'a>
impl<'a> UnwindSafe for SimpleValue<'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