pub struct EdgePreimage {
pub relation: Option<EdgeRelation>,
pub weight: Option<f64>,
}Expand description
Prior edge values for exactly the fields touched by EdgePatch.
Captured weight must be finite and in [0.0, 1.0].
Fields§
§relation: Option<EdgeRelation>§weight: Option<f64>Trait Implementations§
Source§impl Clone for EdgePreimage
impl Clone for EdgePreimage
Source§fn clone(&self) -> EdgePreimage
fn clone(&self) -> EdgePreimage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EdgePreimage
impl Debug for EdgePreimage
Source§impl<'de> Deserialize<'de> for EdgePreimage
impl<'de> Deserialize<'de> for EdgePreimage
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 PartialEq for EdgePreimage
impl PartialEq for EdgePreimage
Source§impl Serialize for EdgePreimage
impl Serialize for EdgePreimage
impl StructuralPartialEq for EdgePreimage
Auto Trait Implementations§
impl Freeze for EdgePreimage
impl RefUnwindSafe for EdgePreimage
impl Send for EdgePreimage
impl Sync for EdgePreimage
impl Unpin for EdgePreimage
impl UnsafeUnpin for EdgePreimage
impl UnwindSafe for EdgePreimage
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