Cargo Features
LinkedVector has no features set by default.
[dependencies]
linked-vector = { version = "1.2.1", features = ["optionless-accessors", "cursor-remove"] }
- optionless-accessors
-
Certain accesors like
get()
andget_mut()
that take a handle as a parameter would panic on a bad handle anyway, so it doesn't make sense that they return anOption
. This feature changes theOption
return values for those methods to direct references to their values.Affects
cursor::CursorBase.get
,cursor::CursorBase.move_to
… - cursor-remove
-
This feature enables the
remove()
method ofCursorMut
. Care should be taken to ensure theLinkedVector
aCursorMut
is attached to isn't empty before performing other operations afterremove()
has drained it.