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 copy 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 ExprRepeat
impl Debug 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§impl Synom for ExprRepeat
impl Synom for ExprRepeat
Source§impl ToTokens for ExprRepeat
impl ToTokens for ExprRepeat
impl Eq for ExprRepeat
impl StructuralPartialEq for ExprRepeat
Auto Trait Implementations§
impl Freeze for ExprRepeat
impl RefUnwindSafe for ExprRepeat
impl !Send for ExprRepeat
impl !Sync for ExprRepeat
impl Unpin 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.