pub enum GraphNode {
Operator(Operator),
Handoff {
kind: HandoffKind,
src_span: Span,
dst_span: Span,
},
ModuleBoundary {
input: bool,
import_expr: Span,
},
}Expand description
A node, corresponding to an operator or a handoff.
Variants§
Operator(Operator)
An operator.
Handoff
An inter-subgraph handoff point for buffering data between subgraphs.
Fields
§
kind: HandoffKindWhat kind of storage this handoff uses.
ModuleBoundary
Module Boundary, used for importing modules. Only exists prior to partitioning.
Fields
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphNode
impl<'de> Deserialize<'de> for GraphNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Send for GraphNode
impl !Sync for GraphNode
impl Forget for GraphNode
impl Freeze for GraphNodewhere
NonZero<u32>: Freeze,
PhantomData<Rc<()>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(PathSegment, PathSep)>: Freeze,
*const PathSegment is !null: Freeze,
PhantomData<PathSegment>: Freeze,
PhantomData<TokenTree>: Freeze,
*const RcInner<Vec<TokenTree>> is !null: Freeze,
PhantomData<RcInner<Vec<TokenTree>>>: Freeze,
PhantomData<(Expr, Comma)>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<SingletonRef>: Freeze,
impl Move for GraphNode
impl RefUnwindSafe for GraphNodewhere
NonZero<u32>: RefUnwindSafe,
ProcMacroAutoTraits: RefUnwindSafe,
RcVec<TokenTree>: RefUnwindSafe,
impl Unpin for GraphNodewhere
NonZero<u32>: Unpin,
Rc<()>: Unpin,
*const u8 is !null: Unpin,
Box<str>: Unpin,
Box<Type>: Unpin,
Rc<Vec<TokenTree>>: Unpin,
Box<Expr>: Unpin,
Box<Pat>: Unpin,
Box<LitRepr>: Unpin,
Box<LitIntRepr>: Unpin,
Box<LitFloatRepr>: Unpin,
Box<FieldPat>: Unpin,
Box<Path>: Unpin,
Box<Lifetime>: Unpin,
Box<CapturedParam>: Unpin,
Box<TypeParamBound>: Unpin,
Box<GenericParam>: Unpin,
Box<WherePredicate>: Unpin,
Box<Field>: Unpin,
Box<Variant>: Unpin,
Box<FnArg>: Unpin,
Box<Block>: Unpin,
Box<UseTree>: Unpin,
Box<FieldValue>: Unpin,
Box<BareFnArg>: Unpin,
Box<GenericArgument>: Unpin,
Box<PathSegment>: Unpin,
impl UnsafeUnpin for GraphNodewhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(PathSegment, PathSep)>: UnsafeUnpin,
*const PathSegment is !null: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
PhantomData<TokenTree>: UnsafeUnpin,
*const RcInner<Vec<TokenTree>> is !null: UnsafeUnpin,
PhantomData<RcInner<Vec<TokenTree>>>: UnsafeUnpin,
PhantomData<(Expr, Comma)>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<SingletonRef>: UnsafeUnpin,
impl UnwindSafe for GraphNodewhere
NonZero<u32>: UnwindSafe,
ProcMacroAutoTraits: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Rc<Vec<TokenTree>>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Pat>: UnwindSafe,
BoxRaw<LitRepr>: UnwindSafe,
BoxRaw<LitIntRepr>: UnwindSafe,
BoxRaw<LitFloatRepr>: UnwindSafe,
BoxRaw<FieldPat>: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
BoxRaw<Lifetime>: UnwindSafe,
BoxRaw<CapturedParam>: UnwindSafe,
BoxRaw<TypeParamBound>: UnwindSafe,
BoxRaw<GenericParam>: UnwindSafe,
BoxRaw<WherePredicate>: UnwindSafe,
BoxRaw<Field>: UnwindSafe,
BoxRaw<Variant>: UnwindSafe,
BoxRaw<FnArg>: UnwindSafe,
BoxRaw<Block>: UnwindSafe,
BoxRaw<UseTree>: UnwindSafe,
BoxRaw<FieldValue>: UnwindSafe,
BoxRaw<BareFnArg>: UnwindSafe,
BoxRaw<GenericArgument>: UnwindSafe,
BoxRaw<PathSegment>: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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