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 PartialOrd for Account
impl PartialOrd for Account
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
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