Trait modifier::Set
[−]
[src]
pub trait Set {
fn set<M: Modifier<Self>>(self, modifier: M) -> Self where Self: Sized { ... }
fn set_mut<M: Modifier<Self>>(&mut self, modifier: M) -> &mut Self { ... }
}
A trait providing the set and set_mut methods for all types.
Simply implement this for your types and they can be used with modifiers.
Provided Methods
fn set<M: Modifier<Self>>(self, modifier: M) -> Self where Self: Sized
Modify self using the provided modifier.
fn set_mut<M: Modifier<Self>>(&mut self, modifier: M) -> &mut Self
Modify self through a mutable reference with the provided modifier.