pub struct TensorLibraryCollection<B: Backend> { /* private fields */ }Implementations§
Source§impl<B: Backend> TensorLibraryCollection<B>
impl<B: Backend> TensorLibraryCollection<B>
Sourcepub fn push(&mut self, lib: Box<dyn TensorLibrary<B>>)
pub fn push(&mut self, lib: Box<dyn TensorLibrary<B>>)
Add a library to the collection.
Sourcepub fn libs(&self) -> &[Box<dyn TensorLibrary<B>>]
pub fn libs(&self) -> &[Box<dyn TensorLibrary<B>>]
Get a reference to the underlying libraries.
Sourcepub fn libs_mut(&mut self) -> &mut [Box<dyn TensorLibrary<B>>]
pub fn libs_mut(&mut self) -> &mut [Box<dyn TensorLibrary<B>>]
Get a mutable reference to the underlying libraries.
Trait Implementations§
Source§impl<B: Backend> Default for TensorLibraryCollection<B>
impl<B: Backend> Default for TensorLibraryCollection<B>
Source§impl<B: Backend> TensorLibrary<B> for TensorLibraryCollection<B>
impl<B: Backend> TensorLibrary<B> for TensorLibraryCollection<B>
Auto Trait Implementations§
impl<B> Freeze for TensorLibraryCollection<B>
impl<B> !RefUnwindSafe for TensorLibraryCollection<B>
impl<B> !Send for TensorLibraryCollection<B>
impl<B> !Sync for TensorLibraryCollection<B>
impl<B> Unpin for TensorLibraryCollection<B>
impl<B> !UnwindSafe for TensorLibraryCollection<B>
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