Trait teloxide::prelude::UpState [−][src]
Constructs a structure from another structure and a field.
Let X
be a structure of field1, ..., fieldN
, Y
be field1, ..., fieldN, fieldN+1
. Both X
and Y
implement Generic
. Then Y::up(x, fieldN+1)
constructs Y
from all the fields of x: X
plus Y
’s
fieldN+1
.
Provided methods
fn up<Src, F>(src: Src, field: F) -> Self where
Src: Generic,
Self: Generic<Repr = <<Src as Generic>::Repr as Add<HCons<F, HNil>>>::Output>,
<Src as Generic>::Repr: Add<HCons<F, HNil>>,
[src]
Src: Generic,
Self: Generic<Repr = <<Src as Generic>::Repr as Add<HCons<F, HNil>>>::Output>,
<Src as Generic>::Repr: Add<HCons<F, HNil>>,