pub struct Expand {}Expand description
A struct that encapsulates the code generation for error definitions.
Implementations§
Source§impl Expand
impl Expand
Sourcepub fn structure(target_value: Structure) -> Result<TokenStream>
pub fn structure(target_value: Structure) -> Result<TokenStream>
Expand to the error implementation for the target Structure.
Sourcepub fn enumeration(target_value: Enumeration) -> Result<TokenStream>
pub fn enumeration(target_value: Enumeration) -> Result<TokenStream>
Expand to the error implementation for the target Enumeration.
Auto Trait Implementations§
impl Freeze for Expand
impl RefUnwindSafe for Expand
impl Send for Expand
impl Sync for Expand
impl Unpin for Expand
impl UnwindSafe for Expand
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