106
107#[derive(Copy, Clone, Debug, PartialEq, Eq)]
108▶pub enum LayoutCalculatorError<F> {
109 /// An unsized type was found in a location where a sized type was expected.
110 ///
· · ·
111▶ /// This is not always a compile error, for example if there is a `[T]: Sized`
112 /// bound in a where clause.
113 ///
· · ·
134}
135
136▶impl<F> LayoutCalculatorError<F> {
137 pub fn without_payload(&self) -> LayoutCalculatorError<()> {
138 use LayoutCalculatorError::*;
· · ·
137▶ pub fn without_payload(&self) -> LayoutCalculatorError<()> {
138 use LayoutCalculatorError::*;
139 match *self {
· · ·
138▶ use LayoutCalculatorError::*;
139 match *self {
140 UnexpectedUnsized(_) => UnexpectedUnsized(()),
+ 15 more matches in this file