pub struct SyntaxTree<Permission = NoAccess> { /* private fields */ }
Implementations§
Source§impl SyntaxTree<FullAccess>
impl SyntaxTree<FullAccess>
pub fn new() -> SyntaxTree<FullAccess>
pub fn export_dot<'a>(&'a self, config: &'a [Config]) -> impl Display + 'a
Source§impl<U: CanAccess> SyntaxTree<U>
impl<U: CanAccess> SyntaxTree<U>
Source§impl<U> SyntaxTree<U>
impl<U> SyntaxTree<U>
Source§impl SyntaxTree
impl SyntaxTree
pub fn children_of<'b, T, U>(
&'b self,
id: NodeId<T>,
token: &'b PermTkn,
tag: ChildTag,
) -> SmallVec<[&U; 1]>where
AnyNode: ConvertibleToRef<U>,
pub fn get<'b, T>(&'b self, id: NodeId<T>, token: &'b PermTkn) -> Option<&T>where
AnyNode: ConvertibleToRef<T>,
pub fn get_mut<'b, T>(
&'b self,
id: NodeId<T>,
token: &'b mut PermTkn,
) -> Option<&mut T>where
AnyNode: ConvertibleToMut<T>,
pub fn parent_of<'a, T>( &'a self, id: NodeId<T>, token: &'a PermTkn, ) -> Option<&AnyNode>
pub fn parent_of_mut<'a, T>(
&'a self,
id: NodeId<T>,
token: &'a mut PermTkn,
) -> &mut T::Parentwhere
T: NodeWithParent + Node,
AnyNode: ConvertibleToMut<T::Parent>,
pub fn apply_changes(self, changes: ChangeSet, token: &PermTkn) -> Self
Trait Implementations§
Source§impl<Permission: Debug> Debug for SyntaxTree<Permission>
impl<Permission: Debug> Debug for SyntaxTree<Permission>
Auto Trait Implementations§
impl<Permission> Freeze for SyntaxTree<Permission>where
Permission: Freeze,
impl<Permission = NoAccess> !RefUnwindSafe for SyntaxTree<Permission>
impl<Permission> Send for SyntaxTree<Permission>where
Permission: Send,
impl<Permission = NoAccess> !Sync for SyntaxTree<Permission>
impl<Permission> Unpin for SyntaxTree<Permission>where
Permission: Unpin,
impl<Permission> UnwindSafe for SyntaxTree<Permission>where
Permission: UnwindSafe,
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