pub struct ValidatedTarget(/* private fields */);Expand description
A validated derive target that can be expanded safely.
Implementations§
Source§impl ValidatedTarget
impl ValidatedTarget
Sourcepub fn expand(self) -> Result<TokenStream>
pub fn expand(self) -> Result<TokenStream>
Expand the validated target into Rust implementation tokens.
§Errors
Returns a diagnostic if final token construction discovers an invalid generated Rust fragment.
Trait Implementations§
Source§impl Clone for ValidatedTarget
impl Clone for ValidatedTarget
Source§fn clone(&self) -> ValidatedTarget
fn clone(&self) -> ValidatedTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for ValidatedTarget
impl !Sync for ValidatedTarget
impl Freeze for ValidatedTarget
impl RefUnwindSafe for ValidatedTarget
impl Unpin for ValidatedTarget
impl UnsafeUnpin for ValidatedTarget
impl UnwindSafe for ValidatedTarget
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