pub struct MapperBuild { /* private fields */ }
Implementations§
Source§impl MapperBuild
impl MapperBuild
pub fn new() -> Self
pub fn with_output<F>(self, f: F) -> Self
pub fn try_with_output<F>(self, f: F) -> Self
pub fn input_map<F>(self, f: F) -> Self
pub fn try_input_map<F>(self, f: F) -> Self
pub fn struct_map<F>(self, f: F) -> Self
pub fn try_struct_map<F>(self, f: F) -> Self
pub fn enum_map<F>(self, f: F) -> Self
pub fn try_enum_map<F>(self, f: F) -> Self
pub fn variant_map<F>(self, f: F) -> Self
pub fn try_variant_map<F>(self, f: F) -> Self
pub fn fields_map<F>(self, f: F) -> Self
pub fn try_fields_map<F>(self, f: F) -> Self
pub fn field_map<F>(self, f: F) -> Self
pub fn try_field_map<F>(self, f: F) -> Self
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 Freeze for MapperBuild
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