pub struct RlHandle { /* private fields */ }Expand description
RL session handle: carries GPU metadata and a CPU-side RNG for buffer operations.
Implementations§
Source§impl RlHandle
impl RlHandle
Sourcepub fn new(sm: u32, device: u32, seed: u64) -> Self
pub fn new(sm: u32, device: u32, seed: u64) -> Self
Create a new handle for the given SM version and device.
Sourcepub fn default_handle() -> Self
pub fn default_handle() -> Self
Create a default handle (SM 8.0 / Ampere, device 0, seed 42).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RlHandle
impl RefUnwindSafe for RlHandle
impl Send for RlHandle
impl Sync for RlHandle
impl Unpin for RlHandle
impl UnsafeUnpin for RlHandle
impl UnwindSafe for RlHandle
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