Skip to main content

rustidy_ast/ty/
slice.rs

1//! Slice type
2
3// Imports
4use {
5	crate::util::Bracketed,
6	super::Type,
7	rustidy_ast_util::delimited,
8	rustidy_format::{Format, Formattable},
9	rustidy_parse::Parse,
10	rustidy_print::Print,
11};
12
13/// `SliceType`
14#[derive(PartialEq, Eq, Clone, Debug)]
15#[derive(serde::Serialize, serde::Deserialize)]
16#[derive(Parse, Formattable, Format, Print)]
17pub struct SliceType(#[format(args = delimited::FmtRemove)] Bracketed<Box<Type>>);