pub trait HomoTuple<T>{
type FieldsWrapped;
type TupleWrapped: IntoIterator<Item = T>;
// Required methods
fn wrap_fields(self) -> Self::FieldsWrapped;
fn wrap_tuple(self) -> Self::TupleWrapped;
fn wrap_into_iter(self) -> <Self::TupleWrapped as IntoIterator>::IntoIter;
}
Expand description
Homogeneous Tuple’s trait.
Required Associated Types§
sourcetype FieldsWrapped
type FieldsWrapped
New type of tuple after fields converted into Option
.
sourcetype TupleWrapped: IntoIterator<Item = T>
type TupleWrapped: IntoIterator<Item = T>
New type of tuple after the whole tuple has been wrapped.
Required Methods§
sourcefn wrap_fields(self) -> Self::FieldsWrapped
fn wrap_fields(self) -> Self::FieldsWrapped
Converts fields into Option
.
sourcefn wrap_tuple(self) -> Self::TupleWrapped
fn wrap_tuple(self) -> Self::TupleWrapped
Wraps the whole tuple and get a new type.
sourcefn wrap_into_iter(self) -> <Self::TupleWrapped as IntoIterator>::IntoIter
fn wrap_into_iter(self) -> <Self::TupleWrapped as IntoIterator>::IntoIter
Converts the tuple into an iterater which owns the fields, by internally converting all fields into Option
s.
Object Safety§
This trait is not object safe.