pub enum Present {
Everyone,
Only(BTreeSet<CharacterId>),
}Expand description
Who is there when a scene plays.
Variants§
Everyone
Everyone: every @if block plays its first part (a scene viewer; a
scene played outside a story).
Only(BTreeSet<CharacterId>)
Only these characters.
Implementations§
Source§impl Present
impl Present
Sourcepub fn only(characters: impl IntoIterator<Item = CharacterId>) -> Self
pub fn only(characters: impl IntoIterator<Item = CharacterId>) -> Self
Only characters.
Sourcepub fn has(&self, character: &CharacterId) -> bool
pub fn has(&self, character: &CharacterId) -> bool
Whether character is there.
Trait Implementations§
impl Eq for Present
impl StructuralPartialEq for Present
Auto Trait Implementations§
impl Freeze for Present
impl RefUnwindSafe for Present
impl Send for Present
impl Sync for Present
impl Unpin for Present
impl UnsafeUnpin for Present
impl UnwindSafe for Present
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more