Type Alias spade::handles::FixedVertexHandle

source ·
pub type FixedVertexHandle = FixedHandleImpl<VertexTag, InnerTag>;
Expand description

Fixed handle to a vertex.

See also the handles module.

Aliased Type§

struct FixedVertexHandle { /* private fields */ }

Implementations§

source§

impl FixedVertexHandle

source

pub fn from_index(index: usize) -> Self

Creates a new vertex handle from a usize.

Ideally, this method should only be used in advanced scenarios as it allows to create invalid vertex handles. When possible, attempt to retrieve handles by other means instead (see crate::handles).

§Panics

Panics if index >= 2^32