pub struct ExprIpyEscapeCommand {
pub node_index: AtomicNodeIndex,
pub range: TextRange,
pub kind: IpyEscapeKind,
pub value: Box<str>,
}Expand description
An AST node used to represent a IPython escape command at the expression level.
For example,
dir = !pwdHere, the escape kind can only be ! or % otherwise it is a syntax error.
For more information related to terminology and syntax of escape commands,
see StmtIpyEscapeCommand.
Fields§
§node_index: AtomicNodeIndex§range: TextRange§kind: IpyEscapeKind§value: Box<str>Trait Implementations§
Source§impl Clone for ExprIpyEscapeCommand
impl Clone for ExprIpyEscapeCommand
Source§fn clone(&self) -> ExprIpyEscapeCommand
fn clone(&self) -> ExprIpyEscapeCommand
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 ExprIpyEscapeCommand
impl Debug for ExprIpyEscapeCommand
Source§impl<'a> From<&'a ExprIpyEscapeCommand> for AnyNodeRef<'a>
impl<'a> From<&'a ExprIpyEscapeCommand> for AnyNodeRef<'a>
Source§fn from(node: &'a ExprIpyEscapeCommand) -> AnyNodeRef<'a>
fn from(node: &'a ExprIpyEscapeCommand) -> AnyNodeRef<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a ExprIpyEscapeCommand> for ExprRef<'a>
impl<'a> From<&'a ExprIpyEscapeCommand> for ExprRef<'a>
Source§fn from(node: &'a ExprIpyEscapeCommand) -> Self
fn from(node: &'a ExprIpyEscapeCommand) -> Self
Converts to this type from the input type.
Source§impl From<ExprIpyEscapeCommand> for Expr
impl From<ExprIpyEscapeCommand> for Expr
Source§fn from(node: ExprIpyEscapeCommand) -> Self
fn from(node: ExprIpyEscapeCommand) -> Self
Converts to this type from the input type.
Source§impl HasNodeIndex for ExprIpyEscapeCommand
impl HasNodeIndex for ExprIpyEscapeCommand
Source§fn node_index(&self) -> &AtomicNodeIndex
fn node_index(&self) -> &AtomicNodeIndex
Returns the
AtomicNodeIndex for this node.Source§impl PartialEq for ExprIpyEscapeCommand
impl PartialEq for ExprIpyEscapeCommand
Source§impl Ranged for ExprIpyEscapeCommand
impl Ranged for ExprIpyEscapeCommand
Source§impl<'a> TryFrom<AnyRootNodeRef<'a>> for &'a ExprIpyEscapeCommand
impl<'a> TryFrom<AnyRootNodeRef<'a>> for &'a ExprIpyEscapeCommand
impl StructuralPartialEq for ExprIpyEscapeCommand
Auto Trait Implementations§
impl !Freeze for ExprIpyEscapeCommand
impl RefUnwindSafe for ExprIpyEscapeCommand
impl Send for ExprIpyEscapeCommand
impl Sync for ExprIpyEscapeCommand
impl Unpin for ExprIpyEscapeCommand
impl UnsafeUnpin for ExprIpyEscapeCommand
impl UnwindSafe for ExprIpyEscapeCommand
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