Struct eiffelvis_gen::event_set::EventSetBuilder
source · [−]pub struct EventSetBuilder { /* private fields */ }Expand description
Provides a way to construct the otherwise non constructable EventSet,
This builder type exists for convience and for validation purposes.
Implementations
sourceimpl EventSetBuilder
impl EventSetBuilder
pub fn new() -> Self
sourcepub fn add_event_set(self, event_set: impl Into<EventSet>) -> Self
pub fn add_event_set(self, event_set: impl Into<EventSet>) -> Self
Adds an existing event set, this is useful when want to combine multiple sets together.
sourcepub fn add_event(self, event: Event) -> Self
pub fn add_event(self, event: Event) -> Self
Adds an Event to the event set.
Note: Event names are unique, so only the last added event is kept.
Trait Implementations
sourceimpl Default for EventSetBuilder
impl Default for EventSetBuilder
sourcefn default() -> EventSetBuilder
fn default() -> EventSetBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventSetBuilder
impl Send for EventSetBuilder
impl Sync for EventSetBuilder
impl Unpin for EventSetBuilder
impl UnwindSafe for EventSetBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more