#[repr(transparent)]pub struct ParamIdx(pub u32);Expand description
Index into a per-parameter optimizer-state buffer.
The optimizer enumerates trainable parameters in registration order.
ParamIdx(0) always refers to the first registered parameter,
ParamIdx(1) to the second, etc. This is not a graph-node index
(those are cjc_ad::NodeIdx); the two integer spaces are unrelated
even though both number from zero.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl Ord for ParamIdx
impl Ord for ParamIdx
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ParamIdx
impl PartialOrd for ParamIdx
impl Copy for ParamIdx
impl Eq for ParamIdx
impl StructuralPartialEq for ParamIdx
Auto Trait Implementations§
impl Freeze for ParamIdx
impl RefUnwindSafe for ParamIdx
impl Send for ParamIdx
impl Sync for ParamIdx
impl Unpin for ParamIdx
impl UnsafeUnpin for ParamIdx
impl UnwindSafe for ParamIdx
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more