pub struct Memory { /* private fields */ }Implementations§
Source§impl Memory
impl Memory
pub fn wrap(client: &Client, ptr: *mut PJRT_Memory) -> Memory
pub fn client(&self) -> &Client
pub fn id(&self) -> i32
pub fn kind(&self) -> Cow<'_, str>
pub fn kind_id(&self) -> i32
pub fn debug_string(&self) -> Cow<'_, str>
pub fn to_string(&self) -> Cow<'_, str>
pub fn addressable_by_devices(&self) -> Vec<Device>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl !Send for Memory
impl !Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more