pub struct EdgeDef {
pub id: EdgeId,
pub from_node: NodeId,
pub to_node: NodeId,
pub from_output: usize,
pub to_input: usize,
pub dtype: String,
pub shape: Vec<usize>,
pub is_control: bool,
}Expand description
Serializable representation of a graph edge
Fields§
§id: EdgeId§from_node: NodeId§to_node: NodeId§from_output: usize§to_input: usize§dtype: String§shape: Vec<usize>§is_control: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for EdgeDef
impl RefUnwindSafe for EdgeDef
impl Send for EdgeDef
impl Sync for EdgeDef
impl Unpin for EdgeDef
impl UnsafeUnpin for EdgeDef
impl UnwindSafe for EdgeDef
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