Struct aeon::object::AeonObject
source · [−]pub struct AeonObject {
pub macros: HashMap<String, Macro>,
pub properties: HashMap<String, AeonProperty>,
pub is_empty: bool,
}
Fields
macros: HashMap<String, Macro>
properties: HashMap<String, AeonProperty>
is_empty: bool
Implementations
sourceimpl AeonObject
impl AeonObject
pub fn new() -> AeonObject
pub fn add_property(&mut self, value: AeonProperty)
pub fn add_macro(&mut self, mac: Macro)
pub fn apply_macro(&mut self, name: String, params: Vec<AeonValue>) -> AeonValue
pub fn try_get_macro(&self, map: &HashMap<String, AeonValue>) -> Option<&Macro>
pub fn copy_macros_to(&self, other: &mut AeonObject)
Trait Implementations
sourceimpl AeonObjectConvert for AeonObject
impl AeonObjectConvert for AeonObject
sourceimpl AeonObjectConvert for AeonObject
impl AeonObjectConvert for AeonObject
Auto Trait Implementations
impl RefUnwindSafe for AeonObject
impl Send for AeonObject
impl Sync for AeonObject
impl Unpin for AeonObject
impl UnwindSafe for AeonObject
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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