pub struct Expressions { /* private fields */ }Expand description
The ordered list of expressions defined by an avatar (presets and customs).
Implementations§
Source§impl Expressions
impl Expressions
Sourcepub fn new(items: Vec<Expression>) -> Self
pub fn new(items: Vec<Expression>) -> Self
Creates an ordered expression collection.
Sourcepub fn iter(&self) -> impl Iterator<Item = &Expression>
pub fn iter(&self) -> impl Iterator<Item = &Expression>
Iterates over preset and custom expressions in stored order.
Sourcepub fn get(&self, name: &str) -> Option<&Expression>
pub fn get(&self, name: &str) -> Option<&Expression>
Finds an expression by its exact preset or custom name.
Trait Implementations§
Source§impl Clone for Expressions
impl Clone for Expressions
Source§impl Debug for Expressions
impl Debug for Expressions
Auto Trait Implementations§
impl Freeze for Expressions
impl RefUnwindSafe for Expressions
impl Send for Expressions
impl Sync for Expressions
impl Unpin for Expressions
impl UnsafeUnpin for Expressions
impl UnwindSafe for Expressions
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