[−][src]Struct syntax_tree::Tree
Methods
impl<T> Tree<T>
[src]
pub fn new(string: &str) -> Tree<T>
[src]
Create new tree.
pub fn load() -> Tree<T>
[src]
Load a tree.
pub fn set(&mut self, start_idx: usize, end_idx: usize, obj: T)
[src]
Set syntax/format info for the passed range. The range is the passed start index (inclusive) to the passed end index (exclusive).
pub fn insert(&mut self, idx: usize, ch: char)
[src]
Insert a char in the underlying text.
pub fn insert_str(&mut self, idx: usize, string: &str)
[src]
Insert a string in the underlying text.
pub fn push(&mut self, ch: char)
[src]
Push a char to the underlying text.
pub fn push_str(&mut self, string: &str)
[src]
Push a string to the underlying text.
pub fn pre_order_iter(&self) -> PreOrder<T>
[src]
Get a depth first pre order iterator.
pub fn leaf_iter(&self) -> impl Iterator<Item = Item<T>>
[src]
Get a leaf iterator.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Tree<T>
impl<T> !Send for Tree<T>
impl<T> !Sync for Tree<T>
impl<T> Unpin for Tree<T>
impl<T> UnwindSafe for Tree<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,