pub struct Adapter<K: AdapterKind, A: AdapterDescriptor<K>> { /* private fields */ }
Expand description
Acts as an abstract interface over the ability to read, write, parse, and serialize voxel data.
Implementations§
Source§impl<K: AdapterKind, A: AdapterDescriptor<K>> Adapter<K, A>
impl<K: AdapterKind, A: AdapterDescriptor<K>> Adapter<K, A>
Sourcepub fn create_adapter_context<'a>(
&self,
config: A::Configuration<'a>,
) -> Result<AdapterContext<'a, K>, GvoxError>
pub fn create_adapter_context<'a>( &self, config: A::Configuration<'a>, ) -> Result<AdapterContext<'a, K>, GvoxError>
Creates a new adapter context instance, with the given configuration, that can be utilized to perform voxel blitting operations.
Sourcepub fn as_mut_ptr(&mut self) -> *mut GvoxAdapter
pub fn as_mut_ptr(&mut self) -> *mut GvoxAdapter
Retrieves a raw handle to the adapter.
Trait Implementations§
Source§impl<K: Clone + AdapterKind, A: Clone + AdapterDescriptor<K>> Clone for Adapter<K, A>
impl<K: Clone + AdapterKind, A: Clone + AdapterDescriptor<K>> Clone for Adapter<K, A>
Source§impl<K: Debug + AdapterKind, A: Debug + AdapterDescriptor<K>> Debug for Adapter<K, A>
impl<K: Debug + AdapterKind, A: Debug + AdapterDescriptor<K>> Debug for Adapter<K, A>
Source§impl<K: PartialEq + AdapterKind, A: PartialEq + AdapterDescriptor<K>> PartialEq for Adapter<K, A>
impl<K: PartialEq + AdapterKind, A: PartialEq + AdapterDescriptor<K>> PartialEq for Adapter<K, A>
impl<K: Eq + AdapterKind, A: Eq + AdapterDescriptor<K>> Eq for Adapter<K, A>
impl<K: AdapterKind, A: AdapterDescriptor<K>> StructuralPartialEq for Adapter<K, A>
Auto Trait Implementations§
impl<K, A> Freeze for Adapter<K, A>
impl<K, A> RefUnwindSafe for Adapter<K, A>where
K: RefUnwindSafe,
A: RefUnwindSafe,
impl<K, A> !Send for Adapter<K, A>
impl<K, A> !Sync for Adapter<K, A>
impl<K, A> Unpin for Adapter<K, A>
impl<K, A> UnwindSafe for Adapter<K, A>where
K: UnwindSafe,
A: UnwindSafe,
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