pub struct Target(/* private fields */);Expand description
A parsed error declaration before semantic validation.
Implementations§
Source§impl Target
impl Target
Sourcepub fn input(input: &DeriveInput) -> Result<Self>
pub fn input(input: &DeriveInput) -> Result<Self>
Parse an error target from a derive input.
Sourcepub fn validate(self) -> Result<ValidatedTarget>
pub fn validate(self) -> Result<ValidatedTarget>
Validate the parsed declaration and return proof-bearing semantics.
§Errors
Returns a diagnostic when declarations conflict or field references do not satisfy their semantic requirements.
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl !Send for Target
impl !Sync for Target
impl Freeze for Target
impl RefUnwindSafe for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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