pub struct Org { /* private fields */ }
Expand description
Org data structure.
Implementations§
Source§impl Org
impl Org
Sourcepub fn to_file_crlf(&self, fname: &str) -> Result<()>
pub fn to_file_crlf(&self, fname: &str) -> Result<()>
Writes an Org struct to a file using carriage returns with a line feed (CRLF).
Sourcepub fn set_heading(&mut self, heading: &str)
pub fn set_heading(&mut self, heading: &str)
Sets the heading of the tree.
Sourcepub fn full_heading(&self) -> String
pub fn full_heading(&self) -> String
Gets the full heading for the tree, including beginning asterisks.
Sourcepub fn content_as_ref(&self) -> &Vec<String>
pub fn content_as_ref(&self) -> &Vec<String>
Returns a reference to the content of the tree.
Sourcepub fn content_as_mut(&mut self) -> &mut Vec<String>
pub fn content_as_mut(&mut self) -> &mut Vec<String>
Returns a mutable reference to the content of the tree.
Sourcepub fn subtrees_as_ref(&self) -> &Vec<Org>
pub fn subtrees_as_ref(&self) -> &Vec<Org>
Returns a reference to the subtrees of the tree.
Sourcepub fn subtrees_as_mut(&mut self) -> &mut Vec<Org>
pub fn subtrees_as_mut(&mut self) -> &mut Vec<Org>
Returns a mutable reference to the subtrees of the tree.
Trait Implementations§
impl StructuralPartialEq for Org
Auto Trait Implementations§
impl Freeze for Org
impl RefUnwindSafe for Org
impl Send for Org
impl Sync for Org
impl Unpin for Org
impl UnwindSafe for Org
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