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