Struct devise::mapper::MapperBuild [−][src]
pub struct MapperBuild { /* fields omitted */ }
Implementations
pub fn with_output<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, TokenStream) -> TokenStream + 'static,
pub fn try_with_output<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, TokenStream) -> Result<TokenStream, Diagnostic> + 'static,
pub fn input_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Input<'_>) -> TokenStream + 'static,
pub fn try_input_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Input<'_>) -> Result<TokenStream, Diagnostic> + 'static,
pub fn struct_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Derived<'_, ItemStruct, &ItemInput>) -> TokenStream + 'static,
pub fn try_struct_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Derived<'_, ItemStruct, &ItemInput>) -> Result<TokenStream, Diagnostic> + 'static,
pub fn enum_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Derived<'_, ItemEnum, &ItemInput>) -> TokenStream + 'static,
pub fn try_enum_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Derived<'_, ItemEnum, &ItemInput>) -> Result<TokenStream, Diagnostic> + 'static,
pub fn variant_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Derived<'_, Variant, Derived<'_, ItemEnum, &ItemInput>>) -> TokenStream + 'static,
pub fn try_variant_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Derived<'_, Variant, Derived<'_, ItemEnum, &ItemInput>>) -> Result<TokenStream, Diagnostic> + 'static,
pub fn fields_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Fields<'_>) -> TokenStream + 'static,
pub fn try_fields_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Fields<'_>) -> Result<TokenStream, Diagnostic> + 'static,
pub fn field_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Field<'_>) -> TokenStream + 'static,
pub fn try_field_map<F>(self, f: F) -> MapperBuild where
F: FnMut(&mut MapperBuild, Field<'_>) -> Result<TokenStream, Diagnostic> + 'static,
Trait Implementations
Returns the “default value” for a type. Read more