pub struct ExprRepeat {
pub attrs: Vec<Attribute>,
pub bracket_token: Bracket,
pub expr: Box<Expr>,
pub semi_token: Semi,
pub len: Box<Expr>,
}Expand description
An array literal constructed from one repeated element: [0u8; N].
This type is available if Syn is built with the "full" feature.
Fields§
§attrs: Vec<Attribute>§bracket_token: Bracket§expr: Box<Expr>§semi_token: Semi§len: Box<Expr>Trait Implementations§
Source§impl Clone for ExprRepeat
impl Clone for ExprRepeat
Source§fn clone(&self) -> ExprRepeat
fn clone(&self) -> ExprRepeat
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 moreSource§impl Debug for ExprRepeat
impl Debug for ExprRepeat
impl Eq for ExprRepeat
Source§impl From<ExprRepeat> for Expr
impl From<ExprRepeat> for Expr
Source§fn from(e: ExprRepeat) -> Expr
fn from(e: ExprRepeat) -> Expr
Converts to this type from the input type.
Source§impl Hash for ExprRepeat
impl Hash for ExprRepeat
Source§impl PartialEq for ExprRepeat
impl PartialEq for ExprRepeat
Source§fn eq(&self, other: &ExprRepeat) -> bool
fn eq(&self, other: &ExprRepeat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExprRepeat
Source§impl Synom for ExprRepeat
Available on crate feature full only.
impl Synom for ExprRepeat
Available on crate feature
full only.Auto Trait Implementations§
impl !Send for ExprRepeat
impl !Sync for ExprRepeat
impl Freeze for ExprRepeat
impl RefUnwindSafe for ExprRepeat
impl Unpin for ExprRepeat
impl UnsafeUnpin for ExprRepeat
impl UnwindSafe for ExprRepeat
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> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.