[−][src]Trait traitgraph::OptionalGraphIndex
Required methods
fn as_usize(self) -> Option<usize>
Get this index as usize
, but return None
if this index is marked as invalid.
fn as_usize_unchecked(self) -> usize
A faster method to get the usize
value of the index, which does not perform any validity checks.
Provided methods
fn is_valid(self) -> bool
Returns true
if the index is valid, i.e. if it is not marked as invalid.
fn new_none() -> Self
Returns a new OptionalGraphIndex
that is marked as invalid.