pub struct Value { /* private fields */ }Implementations§
Source§impl Value
impl Value
pub fn new<'a, A>(value: A) -> DoraValue<'a>where
A: IntoValue<'a>,
pub fn raw(&self) -> i64
pub fn into_i32(&self) -> Option<i32>
pub fn into_i64(&self) -> Option<i64>
pub fn into_f32(&self) -> Option<f32>
pub fn into_f64(&self) -> Option<f64>
pub fn into_bool(&self) -> Option<bool>
pub fn into_str(&self) -> Option<String>
pub fn into_object(&self) -> Option<Box<dyn IObject>>
pub fn into_node(&self) -> Option<Node>
pub fn into_camera(&self) -> Option<Camera>
pub fn into_playable(&self) -> Option<Playable>
pub fn into_physics_world(&self) -> Option<PhysicsWorld>
pub fn into_body(&self) -> Option<Body>
pub fn into_joint(&self) -> Option<Joint>
pub fn into_vec2(&self) -> Option<Vec2>
pub fn into_size(&self) -> Option<Size>
pub fn cast<T: Clone + 'static>(&self) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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