Struct beancount_parser::Account 
source · pub struct Account(/* private fields */);Expand description
Account
You may convert it into a string slice with Account::as_str
Example
use beancount_parser::{BeancountFile, DirectiveContent};
let input = "2022-05-24 open Assets:Bank:Checking";
let beancount: BeancountFile<f64> = input.parse().unwrap();
let DirectiveContent::Open(open) = &beancount.directives[0].content else { unreachable!() };
assert_eq!(open.account.as_str(), "Assets:Bank:Checking");Implementations§
Trait Implementations§
source§impl Ord for Account
 
impl Ord for Account
source§impl PartialEq for Account
 
impl PartialEq for Account
source§impl PartialOrd for Account
 
impl PartialOrd for Account
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Eq for Account
impl StructuralEq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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