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