Struct devise_core::mapper::MapperBuild
source · pub struct MapperBuild { /* private fields */ }
Implementations§
source§impl MapperBuild
impl MapperBuild
pub fn new() -> Self
pub fn with_output<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, TokenStream) -> TokenStream + 'static,
pub fn try_with_output<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, TokenStream) -> Result<TokenStream> + 'static,
pub fn input_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Input<'_>) -> TokenStream + 'static,
pub fn try_input_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Input<'_>) -> Result<TokenStream> + 'static,
pub fn struct_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Struct<'_>) -> TokenStream + 'static,
pub fn try_struct_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Struct<'_>) -> Result<TokenStream> + 'static,
pub fn enum_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Enum<'_>) -> TokenStream + 'static,
pub fn try_enum_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Enum<'_>) -> Result<TokenStream> + 'static,
pub fn variant_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Variant<'_>) -> TokenStream + 'static,
pub fn try_variant_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Variant<'_>) -> Result<TokenStream> + 'static,
pub fn fields_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Fields<'_>) -> TokenStream + 'static,
pub fn try_fields_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Fields<'_>) -> Result<TokenStream> + 'static,
pub fn field_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Field<'_>) -> TokenStream + 'static,
pub fn try_field_map<F>(self, f: F) -> Selfwhere F: FnMut(&mut Self, Field<'_>) -> Result<TokenStream> + 'static,
Trait Implementations§
source§impl Default for MapperBuild
impl Default for MapperBuild
source§fn default() -> MapperBuild
fn default() -> MapperBuild
Returns the “default value” for a type. Read more
source§impl Mapper for MapperBuild
impl Mapper for MapperBuild
fn map_input(&mut self, value: Input<'_>) -> Result<TokenStream>
fn map_struct(&mut self, value: Struct<'_>) -> Result<TokenStream>
fn map_enum(&mut self, value: Enum<'_>) -> Result<TokenStream>
fn map_variant(&mut self, value: Variant<'_>) -> Result<TokenStream>
fn map_fields(&mut self, value: Fields<'_>) -> Result<TokenStream>
fn map_field(&mut self, value: Field<'_>) -> Result<TokenStream>
Auto Trait Implementations§
impl !RefUnwindSafe for MapperBuild
impl !Send for MapperBuild
impl !Sync for MapperBuild
impl Unpin for MapperBuild
impl !UnwindSafe for MapperBuild
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