#[repr(C)]pub struct EdgeAdd {
pub source: TileVertexId,
pub target: TileVertexId,
pub weight: FixedWeight,
pub flags: u16,
}Expand description
Edge addition delta
Fields§
§source: TileVertexIdSource vertex (tile-local ID)
target: TileVertexIdTarget vertex (tile-local ID)
weight: FixedWeightEdge weight (fixed-point)
flags: u16Edge flags (reserved for future use)
Implementations§
Source§impl EdgeAdd
impl EdgeAdd
Sourcepub const fn new(
source: TileVertexId,
target: TileVertexId,
weight: FixedWeight,
) -> Self
pub const fn new( source: TileVertexId, target: TileVertexId, weight: FixedWeight, ) -> Self
Create a new edge addition
Sourcepub const fn with_f32_weight(
source: TileVertexId,
target: TileVertexId,
weight: f32,
) -> Self
pub const fn with_f32_weight( source: TileVertexId, target: TileVertexId, weight: f32, ) -> Self
Create from f32 weight
Trait Implementations§
impl Copy for EdgeAdd
Auto Trait Implementations§
impl Freeze for EdgeAdd
impl RefUnwindSafe for EdgeAdd
impl Send for EdgeAdd
impl Sync for EdgeAdd
impl Unpin for EdgeAdd
impl UnwindSafe for EdgeAdd
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