#[repr(transparent)]pub struct Box { /* private fields */ }
Implementations
sourceimpl Box
impl Box
pub fn contains_box(&self, b: &Box) -> bool
pub fn contains_point(&self, point: &Point3D) -> bool
pub fn expand(&self, point: &Point3D) -> Box
pub fn expand_scalar(&self, scalar: f32) -> Box
pub fn expand_vec3(&self, vec: &Vec3) -> Box
pub fn bounding_sphere(&self) -> Sphere
pub fn center(&self) -> Point3D
pub fn depth(&self) -> f32
pub fn height(&self) -> f32
pub fn max(&self) -> Point3D
pub fn min(&self) -> Point3D
pub fn size(&self) -> Vec3
pub fn width(&self) -> f32
pub fn intersection(&self, b: &Box) -> Option<Box>
pub fn union(&self, b: &Box) -> Box
pub fn empty() -> Box
pub fn infinite() -> Box
pub fn minus_one() -> Box
pub fn one() -> Box
pub fn one_minus_one() -> Box
pub fn zero() -> Box
Trait Implementations
sourceimpl StaticType for Box
impl StaticType for Box
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Copy for Box
impl Eq for Box
Auto Trait Implementations
impl RefUnwindSafe for Box
impl Send for Box
impl Sync for Box
impl Unpin for Box
impl UnwindSafe for Box
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.