pub struct GraphEdge {
pub from: String,
pub to: String,
pub weight: Option<f64>,
}
Fields§
§from: String
§to: String
§weight: Option<f64>
Implementations§
Trait Implementations§
Source§impl ApplyOp for GraphEdge
impl ApplyOp for GraphEdge
type TargetType = PrimitiveKind
type Target = Primitive
type Error = OperatorError
fn apply_binary_op( &self, op: BinOp, _to: &Primitive, ) -> Result<Primitive, OperatorError>
fn apply_unary_op(&self, op: UnOp) -> Result<Self::Target, Self::Error>
fn can_apply_binary_op(_: BinOp, _: Self::TargetType) -> bool
fn can_apply_unary_op(_: UnOp) -> bool
Source§impl<'de> Deserialize<'de> for GraphEdge
impl<'de> Deserialize<'de> for GraphEdge
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
Source§impl Spreadable for GraphEdge
impl Spreadable for GraphEdge
Source§fn to_primitive_set(self) -> Result<Vec<Primitive>, TransformError>
fn to_primitive_set(self) -> Result<Vec<Primitive>, TransformError>
Converts self into a vector of primitives. Read more
impl StructuralPartialEq for GraphEdge
Auto Trait Implementations§
impl Freeze for GraphEdge
impl RefUnwindSafe for GraphEdge
impl Send for GraphEdge
impl Sync for GraphEdge
impl Unpin for GraphEdge
impl UnwindSafe for GraphEdge
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