pub struct Product {
pub ty: Path,
pub variant: Ident,
}Expand description
ONE product: the type that travels, and the word that names it.
Fields§
§ty: PathThe message type, as the declaration spelled it. Resolved by the compiler where the expansion lands, which is the declarer’s OWN scope — a product is this node’s type, not another declaration’s, so no wall is crossed here.
variant: IdentThe product’s identity — the type path’s last segment, and the variant word both the Out
enum and its vocabulary take.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Product
impl !Sync for Product
impl Freeze for Product
impl RefUnwindSafe for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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