Struct netsblox_ast::Entity
source · [−]pub struct Entity {
pub name: String,
pub trans_name: String,
pub fields: Vec<VariableDef>,
pub costumes: Vec<VariableDef>,
pub funcs: Vec<Function>,
pub scripts: Vec<Script>,
pub active_costume: Option<usize>,
pub visible: bool,
pub color: (u8, u8, u8),
pub pos: (f64, f64),
pub heading: f64,
pub scale: f64,
}Fields
name: Stringtrans_name: Stringfields: Vec<VariableDef>costumes: Vec<VariableDef>funcs: Vec<Function>scripts: Vec<Script>active_costume: Option<usize>visible: boolcolor: (u8, u8, u8)pos: (f64, f64)heading: f64scale: f64Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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