pub struct Domains { /* private fields */ }Implementations§
Source§impl Domains
impl Domains
pub fn runtime(&self) -> RuntimeId
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, id: DomainId) -> Option<&dyn Domain>
pub fn iter(&self) -> impl Iterator<Item = &dyn Domain>
pub fn typed<S: DomainSpace>( &mut self, handle: DomainHandle<S>, ) -> Result<&mut TypedDomain<S>, DomainError>
pub fn named<S: DomainSpace>( &self, name: &'static str, ) -> Result<DomainHandle<S>, DomainError>
pub fn read<S: DomainSpace>( &self, handle: DomainHandle<S>, ) -> Result<&TypedDomain<S>, DomainError>
pub fn pick( &self, views: &Views, prepared: &[PreparedGeometry], ndc: [f32; 2], ) -> Option<Pick>
pub fn pick_lifted( &self, views: &Views, prepared: &[PreparedGeometry], ndc: [f32; 2], ) -> Option<Pick>
Auto Trait Implementations§
impl Freeze for Domains
impl !RefUnwindSafe for Domains
impl Send for Domains
impl !Sync for Domains
impl Unpin for Domains
impl UnsafeUnpin for Domains
impl !UnwindSafe for Domains
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