Struct fuzzy_pickles::ast::Slice
source · pub struct Slice {
pub extent: Extent,
pub target: Box<Attributed<Expression>>,
pub index: Box<Attributed<Expression>>,
pub whitespace: Vec<Whitespace>,
}
Expand description
The square-bracket operator for slicing and indexing
Example Source
ⓘ
fn a() { value[0]; }
// ^^^^^^^^
Fields§
§extent: Extent
§target: Box<Attributed<Expression>>
§index: Box<Attributed<Expression>>
§whitespace: Vec<Whitespace>