pub struct LitListRepeat {
pub value: Box<Expr>,
pub count: Box<Expr>,
pub span: Range<usize>,
}Expand description
The list type, formed by repeating the given expression n times: [expr; n].
Fields§
§value: Box<Expr>The expression to repeat.
count: Box<Expr>The number of times to repeat the expression.
span: Range<usize>The region of the source code that this literal was parsed from.
Trait Implementations§
Source§impl Clone for LitListRepeat
impl Clone for LitListRepeat
Source§fn clone(&self) -> LitListRepeat
fn clone(&self) -> LitListRepeat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LitListRepeat
impl Debug for LitListRepeat
Source§impl Display for LitListRepeat
impl Display for LitListRepeat
Source§impl Latex for LitListRepeat
impl Latex for LitListRepeat
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for LitListRepeat
impl<'source> Parse<'source> for LitListRepeat
Source§impl PartialEq for LitListRepeat
impl PartialEq for LitListRepeat
impl Eq for LitListRepeat
impl StructuralPartialEq for LitListRepeat
Auto Trait Implementations§
impl Freeze for LitListRepeat
impl RefUnwindSafe for LitListRepeat
impl Send for LitListRepeat
impl Sync for LitListRepeat
impl Unpin for LitListRepeat
impl UnwindSafe for LitListRepeat
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