pub struct StmtAnnAssign {
pub node_index: AtomicNodeIndex,
pub range: TextRange,
pub target: Box<Expr>,
pub annotation: Box<Expr>,
pub value: Option<Box<Expr>>,
pub simple: bool,
}Expand description
See also AnnAssign
Fields§
§node_index: AtomicNodeIndex§range: TextRange§target: Box<Expr>§annotation: Box<Expr>§value: Option<Box<Expr>>§simple: boolTrait Implementations§
Source§impl Clone for StmtAnnAssign
impl Clone for StmtAnnAssign
Source§fn clone(&self) -> StmtAnnAssign
fn clone(&self) -> StmtAnnAssign
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StmtAnnAssign
impl Debug for StmtAnnAssign
Source§impl<'a> From<&'a StmtAnnAssign> for AnyNodeRef<'a>
impl<'a> From<&'a StmtAnnAssign> for AnyNodeRef<'a>
Source§fn from(node: &'a StmtAnnAssign) -> AnyNodeRef<'a>
fn from(node: &'a StmtAnnAssign) -> AnyNodeRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a StmtAnnAssign> for StmtRef<'a>
impl<'a> From<&'a StmtAnnAssign> for StmtRef<'a>
Source§fn from(node: &'a StmtAnnAssign) -> Self
fn from(node: &'a StmtAnnAssign) -> Self
Converts to this type from the input type.
Source§impl From<StmtAnnAssign> for Stmt
impl From<StmtAnnAssign> for Stmt
Source§fn from(node: StmtAnnAssign) -> Self
fn from(node: StmtAnnAssign) -> Self
Converts to this type from the input type.
Source§impl HasNodeIndex for StmtAnnAssign
impl HasNodeIndex for StmtAnnAssign
Source§fn node_index(&self) -> &AtomicNodeIndex
fn node_index(&self) -> &AtomicNodeIndex
Returns the
AtomicNodeIndex for this node.Source§impl PartialEq for StmtAnnAssign
impl PartialEq for StmtAnnAssign
Source§impl Ranged for StmtAnnAssign
impl Ranged for StmtAnnAssign
Source§impl<'a> TryFrom<AnyRootNodeRef<'a>> for &'a StmtAnnAssign
impl<'a> TryFrom<AnyRootNodeRef<'a>> for &'a StmtAnnAssign
impl StructuralPartialEq for StmtAnnAssign
Auto Trait Implementations§
impl !Freeze for StmtAnnAssign
impl RefUnwindSafe for StmtAnnAssign
impl Send for StmtAnnAssign
impl Sync for StmtAnnAssign
impl Unpin for StmtAnnAssign
impl UnsafeUnpin for StmtAnnAssign
impl UnwindSafe for StmtAnnAssign
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more