Module ref_or_owned

Source

Enumsยง

RefMutOrBox
A type which can be either a mutable reference, or an owned boxed value. Box is used for the owned variant because this type is primarily intended for use with unsized types, most particularly trait objects. For sized types, it is strongly suggested to use RefMutOrOwned instead.
RefMutOrOwned
A type which can be either a mutable reference, or an owned value. RefMutOrOwned requires sized types. For unsized types, use RefMutOrBox instead.
RefOrBox
A type which can be either an immutable reference, or an owned boxed value. Box is used for the owned variant because this type is primarily intended for use with unsized types, most particularly trait objects. For sized types, it is strongly suggested to use RefOrOwned instead.
RefOrOwned
A type which can be either an immutable reference, or an owned value. RefOrOwned requires sized types. For unsized types, use RefOrBox instead.