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) -> ExprRef<'a>
fn from(node: &'a ExprIpyEscapeCommand) -> ExprRef<'a>
Converts to this type from the input type.
Source§impl From<ExprIpyEscapeCommand> for Expr
impl From<ExprIpyEscapeCommand> for Expr
Source§fn from(node: ExprIpyEscapeCommand) -> Expr
fn from(node: ExprIpyEscapeCommand) -> Expr
Converts to this type from the input type.
Source§impl GetSize for ExprIpyEscapeCommand
impl GetSize for ExprIpyEscapeCommand
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_heap_size_with_tracker<TRACKER>(
&self,
tracker: TRACKER,
) -> (usize, TRACKER)where
TRACKER: GetSizeTracker,
fn get_heap_size_with_tracker<TRACKER>(
&self,
tracker: TRACKER,
) -> (usize, TRACKER)where
TRACKER: GetSizeTracker,
Determines how many bytes this object occupies inside the heap while using a
tracker. Read moreSource§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
Determines the total size of the object while using a
tracker. Read moreSource§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