Struct derive_more::display::State
source · struct State<'a, 'b> {
trait_path: &'b TokenStream,
trait_attr: &'static str,
input: &'a DeriveInput,
type_params: HashSet<Ident, DeterministicState>,
}
Fields§
§trait_path: &'b TokenStream
§trait_attr: &'static str
§input: &'a DeriveInput
§type_params: HashSet<Ident, DeterministicState>
Implementations§
source§impl<'a, 'b> State<'a, 'b>
impl<'a, 'b> State<'a, 'b>
fn get_proper_fmt_syntax(&self) -> impl Display
fn get_proper_bound_syntax(&self) -> impl Display
fn get_matcher(&self, fields: &Fields) -> TokenStream
fn find_meta(&self, attrs: &[Attribute], meta_key: &str) -> Result<Option<Meta>>
fn parse_meta_bounds( &self, bounds: &LitStr ) -> Result<HashMap<Type, HashSet<TraitBound, DeterministicState>, DeterministicState>>
fn parse_meta_fmt( &self, meta: &Meta, outer_enum: bool ) -> Result<(TokenStream, bool)>
fn infer_fmt(&self, fields: &Fields, name: &Ident) -> Result<TokenStream>
fn get_match_arms_and_extra_bounds(&self) -> Result<ParseResult>
fn get_used_type_params_bounds( &self, fields: &Fields, meta: &Meta ) -> HashMap<Type, HashSet<TraitBound, DeterministicState>, DeterministicState>
fn infer_type_params_bounds( &self, fields: &Fields ) -> HashMap<Type, HashSet<TraitBound, DeterministicState>, DeterministicState>
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for State<'a, 'b>
impl<'a, 'b> !Send for State<'a, 'b>
impl<'a, 'b> !Sync for State<'a, 'b>
impl<'a, 'b> Unpin for State<'a, 'b>
impl<'a, 'b> UnwindSafe for State<'a, 'b>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more