pub struct Constructor {
pub func: &'static str,
pub vb_arg: usize,
pub leaves: &'static [Leaf],
pub cite: &'static str,
}Expand description
A candle-nn constructor whose parameter layout we know exactly.
Fields§
§func: &'static strLast path segment of the call, e.g. linear for candle_nn::linear or nn::linear.
vb_arg: usizeZero-based index of the VarBuilder argument.
leaves: &'static [Leaf]§cite: &'static strSource citation, carried into diagnostics so a reader can check us.
Trait Implementations§
Source§impl Clone for Constructor
impl Clone for Constructor
Source§fn clone(&self) -> Constructor
fn clone(&self) -> Constructor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Constructor
Auto Trait Implementations§
impl Freeze for Constructor
impl RefUnwindSafe for Constructor
impl Send for Constructor
impl Sync for Constructor
impl Unpin for Constructor
impl UnsafeUnpin for Constructor
impl UnwindSafe for Constructor
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