Home
last modified time | relevance | path

Searched refs:error_or_skip (Results 1 – 5 of 5) sorted by relevance

/linux/rust/zerocopy-derive/derive/
H A Dinto_bytes.rs84 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()
H A Dunaligned.rs33 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()
H A Dmod.rs101 .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()
H A Dfrom_bytes.rs122 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()
/linux/rust/zerocopy-derive/
H A Dutil.rs137 pub(crate) fn error_or_skip<E>(&self, error: E) -> Result<TokenStream, E> { in error_or_skip() method