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