Home
last modified time | relevance | path

Searched refs:SelfBounds (Results 1 – 2 of 2) sorted by relevance

/linux/rust/zerocopy-derive/derive/
H A Dknown_layout.rs9 util::{Ctx, DataExt, FieldBounds, ImplBlockBuilder, SelfBounds, Trait},
16 ) -> Option<(SelfBounds<'a>, TokenStream, Option<TokenStream>)> { in derive_known_layout_for_repr_c_struct()
247 Some((SelfBounds::None, inner_extras, Some(outer_extras))) in derive_known_layout_for_repr_c_struct()
280 SelfBounds::SIZED, in derive()
309 if matches!(self_bounds, SelfBounds::All(&[Trait::Sized])) { in derive()
334 .self_type_trait_bounds(SelfBounds::SIZED) in derive()
343 .self_type_trait_bounds(SelfBounds::SIZED) in derive()
/linux/rust/zerocopy-derive/
H A Dutil.rs408 pub(crate) enum SelfBounds<'a> { enum
416 impl<'a> SelfBounds<'a> { implementation
436 self_type_trait_bounds: SelfBounds<'a>,
455 self_type_trait_bounds: SelfBounds::None, in new()
463 pub(crate) fn self_type_trait_bounds(mut self, self_type_trait_bounds: SelfBounds<'a>) -> Self { in self_type_trait_bounds()
615 SelfBounds::None => None, in build()
616 SelfBounds::All(traits) => { in build()