pub struct VoiceManifest<V> {
pub clips: Vec<VoiceClip<V>>,
}Expand description
The validated voice manifest of one language.
Fields§
§clips: Vec<VoiceClip<V>>Every clip, in file order.
Implementations§
Source§impl<V: ClipVariant> VoiceManifest<V>
impl<V: ClipVariant> VoiceManifest<V>
Sourcepub fn is_stale<D>(
clip: &VoiceClip<V>,
dialogue: &DialogueTable<D>,
spoken: impl Fn(&str, V) -> Option<String>,
) -> bool
pub fn is_stale<D>( clip: &VoiceClip<V>, dialogue: &DialogueTable<D>, spoken: impl Fn(&str, V) -> Option<String>, ) -> bool
Whether clip is stale: spoken (the words a line written as the
text it is given says, as played for a variant; None when no clip
can say them) is not what the clip says. A clip of a line that is
gone is stale too.
Sourcepub fn needs_remake<D>(
clip: &VoiceClip<V>,
dialogue: &DialogueTable<D>,
spoken: impl Fn(&str, V) -> Option<String>,
) -> bool
pub fn needs_remake<D>( clip: &VoiceClip<V>, dialogue: &DialogueTable<D>, spoken: impl Fn(&str, V) -> Option<String>, ) -> bool
Whether clip should be made again: it is stale
(is_stale) or its line’s direction changed. A
clip whose direction changed still says the right words, so it stays
playable until it is made again.
Trait Implementations§
Source§impl<V: Clone> Clone for VoiceManifest<V>
impl<V: Clone> Clone for VoiceManifest<V>
Source§fn clone(&self) -> VoiceManifest<V>
fn clone(&self) -> VoiceManifest<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Debug> Debug for VoiceManifest<V>
impl<V: Debug> Debug for VoiceManifest<V>
Source§impl<V> Default for VoiceManifest<V>
impl<V> Default for VoiceManifest<V>
impl<V: Eq> Eq for VoiceManifest<V>
Source§impl<V: PartialEq> PartialEq for VoiceManifest<V>
impl<V: PartialEq> PartialEq for VoiceManifest<V>
impl<V: PartialEq> StructuralPartialEq for VoiceManifest<V>
Auto Trait Implementations§
impl<V> Freeze for VoiceManifest<V>
impl<V> RefUnwindSafe for VoiceManifest<V>where
V: RefUnwindSafe,
impl<V> Send for VoiceManifest<V>where
V: Send,
impl<V> Sync for VoiceManifest<V>where
V: Sync,
impl<V> Unpin for VoiceManifest<V>where
V: Unpin,
impl<V> UnsafeUnpin for VoiceManifest<V>
impl<V> UnwindSafe for VoiceManifest<V>where
V: UnwindSafe,
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