pub struct Model { /* private fields */ }
Implementations§
Source§impl Model
impl Model
pub fn from_ptr(ptr: *mut TRITONBACKEND_Model) -> Self
pub fn name(&self) -> Result<String, Error>
pub fn version(&self) -> Result<u64, Error>
pub fn location(&self) -> Result<String, Error>
pub fn path(&self, filename: &str) -> Result<PathBuf, Error>
pub fn load_file(&self, filename: &str) -> Result<Vec<u8>, Error>
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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