Skip to main content

typed_quote/tokens/
empty.rs

1use super::*;
2
3impl sealed::IntoTokens for Empty {}
4impl IntoTokens for Empty {
5    crate::impl_into_tokens!(|self, _| {}, Default::default(),);
6}
7
8impl sealed::ToTokens for Empty {}
9impl ToTokens for Empty {
10    crate::impl_to_tokens! {copy}
11}
12
13impl sealed::WithSpan for Empty {}
14impl WithSpan for Empty {
15    type WithDefaultSpan<S: crate::Span> = Self;
16
17    fn with_default_span<S: crate::Span>(self, _: S) -> Self::WithDefaultSpan<S> {
18        self
19    }
20
21    type WithReplacedSpan<S: crate::Span> = Self;
22
23    fn with_replaced_span<S: crate::Span>(self, _: S) -> Self::WithReplacedSpan<S> {
24        self
25    }
26}
27
28impl sealed::RefWithSpan for Empty {}
29impl RefWithSpan for Empty {
30    crate::impl_ref_with_span! {copy}
31}