Struct syn_solidity::TypeArray
source · pub struct TypeArray {
pub ty: Box<Type>,
pub bracket_token: Bracket,
pub size: Option<LitInt>,
}
Expand description
An array type.
Fields§
§ty: Box<Type>
§bracket_token: Bracket
§size: Option<LitInt>
Implementations§
source§impl TypeArray
impl TypeArray
pub fn span(&self) -> Span
pub fn set_span(&mut self, span: Span)
sourcepub fn is_abi_dynamic(&self) -> bool
pub fn is_abi_dynamic(&self) -> bool
See Type::is_abi_dynamic
.
sourcepub fn wrap(input: ParseStream<'_>, ty: Type) -> Result<Self>
pub fn wrap(input: ParseStream<'_>, ty: Type) -> Result<Self>
Parses an array type from the given input stream, wrapping ty
with it.
Trait Implementations§
source§impl PartialEq<TypeArray> for TypeArray
impl PartialEq<TypeArray> for TypeArray
impl Eq for TypeArray
Auto Trait Implementations§
impl RefUnwindSafe for TypeArray
impl !Send for TypeArray
impl !Sync for TypeArray
impl Unpin for TypeArray
impl UnwindSafe for TypeArray
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