Struct kodept_ast::Binary
source · pub struct Binary {
pub kind: BinaryExpressionKind,
/* private fields */
}Fields§
§kind: BinaryExpressionKindImplementations§
source§impl Binary
impl Binary
pub fn left<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Binary, ContainerT<Identity<LeftOperation>>>
pub fn left_mut<'a>(&self, tree: &'a mut SyntaxTree)
source§impl Binary
impl Binary
pub fn right<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, Binary, ContainerT<Identity<RightOperation>>>
pub fn right_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl From<Binary> for GenericASTNode
impl From<Binary> for GenericASTNode
source§fn from(original: Binary) -> GenericASTNode
fn from(original: Binary) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Identity<LeftOperation> as FromOptVec>::T> for Binary
impl HasChildrenMarker<<Identity<LeftOperation> as FromOptVec>::T> for Binary
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 Binary
impl HasChildrenMarker<<Identity<RightOperation> as FromOptVec>::T> for Binary
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 Binary
impl HasChildrenMarker<<Vec<Operation> as FromOptVec>::T> for Binary
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 Binary
impl Identifiable for Binary
source§impl PartialEq for Binary
impl PartialEq for Binary
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Binary
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime Binary
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Binary
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut Binary
source§impl TryFrom<GenericASTNode> for Binary
impl TryFrom<GenericASTNode> for Binary
impl StructuralPartialEq for Binary
Auto Trait Implementations§
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
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