Struct webxr_api::EntityTypes
source · pub struct EntityTypes {
pub point: bool,
pub plane: bool,
pub mesh: bool,
}
Expand description
Vec
Fields§
§point: bool
§plane: bool
§mesh: bool
Implementations§
source§impl EntityTypes
impl EntityTypes
pub fn is_type(self, ty: EntityType) -> bool
pub fn add_type(&mut self, ty: EntityType)
Trait Implementations§
source§impl Clone for EntityTypes
impl Clone for EntityTypes
source§fn clone(&self) -> EntityTypes
fn clone(&self) -> EntityTypes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EntityTypes
impl Debug for EntityTypes
source§impl Default for EntityTypes
impl Default for EntityTypes
source§fn default() -> EntityTypes
fn default() -> EntityTypes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EntityTypes
impl<'de> Deserialize<'de> for EntityTypes
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromIterator<EntityType> for EntityTypes
impl FromIterator<EntityType> for EntityTypes
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = EntityType>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = EntityType>,
Creates a value from an iterator. Read more
source§impl Serialize for EntityTypes
impl Serialize for EntityTypes
impl Copy for EntityTypes
Auto Trait Implementations§
impl Freeze for EntityTypes
impl RefUnwindSafe for EntityTypes
impl Send for EntityTypes
impl Sync for EntityTypes
impl Unpin for EntityTypes
impl UnwindSafe for EntityTypes
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