Struct kodept_ast::TupleLiteral
source · pub struct TupleLiteral { /* private fields */ }Implementations§
source§impl TupleLiteral
impl TupleLiteral
pub fn value<'a>( &self, tree: &'a SyntaxTree, token: &'a GhostToken ) -> ChildrenRef<'a, TupleLiteral, ContainerT<Vec<Literal>>>
pub fn value_mut<'a>(&self, tree: &'a mut SyntaxTree)
Trait Implementations§
source§impl Debug for TupleLiteral
impl Debug for TupleLiteral
source§impl From<TupleLiteral> for GenericASTNode
impl From<TupleLiteral> for GenericASTNode
source§fn from(original: TupleLiteral) -> GenericASTNode
fn from(original: TupleLiteral) -> GenericASTNode
Converts to this type from the input type.
source§impl HasChildrenMarker<<Vec<Literal> as FromOptVec>::T> for TupleLiteral
impl HasChildrenMarker<<Vec<Literal> as FromOptVec>::T> for TupleLiteral
type Container = Vec<Literal>
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 TupleLiteral
impl Identifiable for TupleLiteral
source§impl PartialEq for TupleLiteral
impl PartialEq for TupleLiteral
source§fn eq(&self, other: &TupleLiteral) -> bool
fn eq(&self, other: &TupleLiteral) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime TupleLiteral
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime GenericASTNode> for &'__deriveMoreLifetime TupleLiteral
source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut TupleLiteral
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut GenericASTNode> for &'__deriveMoreLifetime mut TupleLiteral
source§impl TryFrom<GenericASTNode> for TupleLiteral
impl TryFrom<GenericASTNode> for TupleLiteral
impl StructuralPartialEq for TupleLiteral
Auto Trait Implementations§
impl RefUnwindSafe for TupleLiteral
impl Send for TupleLiteral
impl Sync for TupleLiteral
impl Unpin for TupleLiteral
impl UnwindSafe for TupleLiteral
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