pub struct Ignored<T: ?Sized>(core::marker::PhantomData<T>);
impl<T> From<T> for Ignored<T> {
#[cfg_attr(not(tarpaulin), inline(always))]
fn from(_: T) -> Self {
Self(core::marker::PhantomData)
}
}
impl<T: ?Sized> Default for Ignored<T> {
#[cfg_attr(not(tarpaulin), inline(always))]
fn default() -> Self {
Self(core::marker::PhantomData)
}
}
impl<T: ?Sized> core::fmt::Debug for Ignored<T> {
#[cfg_attr(not(tarpaulin), inline(always))]
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "Ignored")
}
}
impl<T: ?Sized> Clone for Ignored<T> {
#[cfg_attr(not(tarpaulin), inline(always))]
fn clone(&self) -> Self {
*self
}
}
impl<T: ?Sized> Copy for Ignored<T> {}
pub type PhantomSpan = super::SimpleSpan<()>;
impl PhantomSpan {
pub const PHANTOM: Self = Self { start: (), end: () };
#[cfg_attr(not(tarpaulin), inline(always))]
pub const fn phantom() -> Self {
Self::PHANTOM
}
}
pub type PhantomSliced = super::Sliced<(), ()>;
impl PhantomSliced {
pub const PHANTOM: Self = Self {
slice: (),
data: (),
};
#[cfg_attr(not(tarpaulin), inline(always))]
pub const fn phantom() -> Self {
Self::PHANTOM
}
}
pub type PhantomLocated = super::Located<(), (), ()>;
impl PhantomLocated {
pub const PHANTOM: Self = Self {
slice: (),
span: (),
data: (),
};
#[cfg_attr(not(tarpaulin), inline(always))]
pub const fn phantom() -> Self {
Self::PHANTOM
}
}
pub type PhantomDelimited = super::Delimited<(), (), (), ()>;
impl PhantomDelimited {
pub const PHANTOM: Self = Self {
open: (),
close: (),
span: (),
data: (),
};
#[cfg_attr(not(tarpaulin), inline(always))]
pub const fn phantom() -> Self {
Self::PHANTOM
}
}