pub struct Reference {
pub target: Path,
pub through: Through,
}Expand description
A field’s ref(…): the record it names, and how the referring value is reached from the field’s
own type.
Fields§
§target: PathThe target record, exactly as the declaration spelled it.
A PATH rather than a resolved type, for the reason Derived::source is one: the equation it
feeds is type-level, so an alias resolves and nothing here token-matches the spelling.
through: ThroughWhich of the field’s types the equation is checked against.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Reference
impl !Sync for Reference
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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