pub struct Repeat {
pub var: String,
pub bound: String,
}Expand description
A repeated construction, from a for loop or an iterator chain over layers.
Fields§
§var: StringLoop variable, e.g. index.
bound: StringSource text of the bound, e.g. cfg.num_hidden_layers. Never evaluated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Repeat
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnsafeUnpin for Repeat
impl UnwindSafe for Repeat
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