Struct eiffelvis_gen::event_set::EventSet
source · [−]pub struct EventSet { /* private fields */ }
Expand description
EventSet allows you to describe the types of eiffel events and links you want to generate together.
A peculiarity with EventSet are the custom EventBorrow and LinkBorrow types, these act as a proxy for the real Event and Link types with the benefit of EventBorrow::links() and LinkBorrow::targets() returning the same Borrow types compared to just string names.
Implementations
sourceimpl EventSet
impl EventSet
sourcepub fn build() -> EventSetBuilder
pub fn build() -> EventSetBuilder
Gives quick access to EventSetBuilder.
sourcepub fn events(&self) -> impl Iterator<Item = EventBorrow<'_>>
pub fn events(&self) -> impl Iterator<Item = EventBorrow<'_>>
Provides an iterator over the events present in this set.
sourcepub fn get_event(&self, name: &str) -> Option<EventBorrow<'_>>
pub fn get_event(&self, name: &str) -> Option<EventBorrow<'_>>
Returns the Event that matches the given name.
sourcepub fn get_link(&self, name: &str) -> Option<LinkBorrow<'_>>
pub fn get_link(&self, name: &str) -> Option<LinkBorrow<'_>>
Returns the Link that matches the given name.
Trait Implementations
sourceimpl From<EiffelVocabulary> for EventSet
impl From<EiffelVocabulary> for EventSet
sourcefn from(_: EiffelVocabulary) -> Self
fn from(_: EiffelVocabulary) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for EventSet
impl Send for EventSet
impl Sync for EventSet
impl Unpin for EventSet
impl UnwindSafe for EventSet
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