Module split

Module split 

Source
Expand description

Traits for splitting structs into selected fields and remainder. Split structs into selected fields and remainder.

Use split() when extraction always succeeds (e.g., Present → Optional). Use try_split() when extraction may fail (e.g., Optional → Present can fail if None).

Traits§

Split
Trait for compile-time checked splitting from one presence to another.
TrySplit
Trait for runtime checked splitting that may fail.

Type Aliases§

SplitResult
Return type for Split::split.