Searched refs:error_or_skip (Results 1 – 5 of 5) sorted by relevance
84 return ctx.error_or_skip(Error::new( in derive_into_bytes_struct()104 return ctx.error_or_skip(Error::new( in derive_into_bytes_enum()142 return ctx.error_or_skip(Error::new( in derive_into_bytes_union()154 return ctx.error_or_skip(Error::new( in derive_into_bytes_union()
33 return ctx.error_or_skip(Error::new( in derive_unaligned_struct()50 return ctx.error_or_skip(Error::new( in derive_unaligned_enum()73 return ctx.error_or_skip(Error::new( in derive_unaligned_union()
101 .error_or_skip(Error::new(Span::call_site(), "can only be applied to structs")); in derive_split_at()106 return ctx.error_or_skip(Error::new( in derive_split_at()113 return ctx.error_or_skip(Error::new( in derive_split_at()123 return ctx.error_or_skip(Error::new(Span::call_site(), "must at least one field")); in derive_split_at()
122 return ctx.error_or_skip( in derive_from_zeros_enum()135 return ctx.error_or_skip(Error::new_spanned( in derive_from_zeros_enum()145 return ctx.error_or_skip(Error::new_spanned( in derive_from_zeros_enum()177 return ctx.error_or_skip(Error::new_spanned( in derive_from_bytes_enum()
137 pub(crate) fn error_or_skip<E>(&self, error: E) -> Result<TokenStream, E> { in error_or_skip() method