pub struct ParamSite {
pub id: ParamSiteId,
pub owner: ModuleDefId,
pub acquisition: Acquisition,
pub relative_key: Key,
pub kind: ParamKind,
pub shape: Option<String>,
pub span: SrcSpan,
pub certainty: Certainty,
}Expand description
A parameter-registering call site in source, relative to its owning def.
Fields§
§id: ParamSiteId§owner: ModuleDefId§acquisition: Acquisition§relative_key: KeyKey relative to the VarBuilder handed to the owning constructor.
kind: ParamKind§shape: Option<String>Source text of the shape argument, when one was supplied. Symbolic on purpose: the dimensions are config expressions and inventing numbers would be a lie.
span: SrcSpan§certainty: CertaintyTrait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSite
impl RefUnwindSafe for ParamSite
impl Send for ParamSite
impl Sync for ParamSite
impl Unpin for ParamSite
impl UnsafeUnpin for ParamSite
impl UnwindSafe for ParamSite
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