pub struct DowngradeStructParts {
pub weak_fields: TokenStream,
pub end_of_struct: TokenStream,
pub destruct: TokenStream,
pub downgrade: TokenStream,
pub upgrade: TokenStream,
}
Expand description
Parts needed to derive Downgrade and Upgrade implementation.
Fields§
§weak_fields: TokenStream
Inner part of weak type declaration
end_of_struct: TokenStream
Term needed to finish declaration. It is usually blank but is ;
for tuple structs.
destruct: TokenStream
Destructuring pattern
downgrade: TokenStream
Downgrade code
upgrade: TokenStream
Upgrade code
Auto Trait Implementations§
impl Freeze for DowngradeStructParts
impl RefUnwindSafe for DowngradeStructParts
impl !Send for DowngradeStructParts
impl !Sync for DowngradeStructParts
impl Unpin for DowngradeStructParts
impl UnwindSafe for DowngradeStructParts
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