Struct kodept_ast::Access
source · pub struct Access { /* private fields */ }Implementations§
source§impl Access
impl Access
pub fn left<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Access, ContainerT<Identity<LeftOperation>>>
pub fn left_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl Access
impl Access
pub fn right<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Access, ContainerT<Identity<RightOperation>>>
pub fn right_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl From<Access> for GenericASTNode
impl From<Access> for GenericASTNode
source§fn from(original: Access) -> GenericASTNode
fn from(original: Access) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Identity<LeftOperation> as FromOptVec>::T> for Access
impl HasChildrenMarker<<Identity<LeftOperation> as FromOptVec>::T> for Access
type Container = Identity<LeftOperation>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl HasChildrenMarker<<Identity<RightOperation> as FromOptVec>::T> for Access
impl HasChildrenMarker<<Identity<RightOperation> as FromOptVec>::T> for Access
type Container = Identity<RightOperation>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl HasChildrenMarker<<Vec<Operation> as FromOptVec>::T> for Access
impl HasChildrenMarker<<Vec<Operation> as FromOptVec>::T> for Access
type Container = Vec<Operation>
fn get_children<'b>(
&self,
tree: &'b SyntaxTree,
token: &'b GhostToken
) -> ChildrenRef<'b, Self, Child>where
for<'a> &'a Child: TryFrom<&'a GenericASTNode>,
Self: 'static,
for<'a> <&'a GenericASTNode as TryInto<&'a Child>>::Error: Debug,
fn for_children_mut<'b, F, T>(
&self,
tree: &'b mut SyntaxTree,
handler: F
) -> Vec<T>where
for<'a> &'a mut Child: TryFrom<&'a mut GenericASTNode>,
Self: 'static,
F: FnMut(&mut Child) -> T,
source§impl Identifiable for Access
impl Identifiable for Access
source§impl PartialEq for Access
impl PartialEq for Access
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Access
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Access
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Access
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Access
source§impl TryFrom<GenericASTNode> for Access
impl TryFrom<GenericASTNode> for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnwindSafe for Access
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