pub struct Reference {
pub name: String,
pub kind: ReferenceKind,
pub receiver: Option<String>,
pub span: Span,
pub owner: Option<String>,
pub string_arguments: Vec<String>,
pub name_arguments: Vec<String>,
}Expand description
One name mentioning another.
Fields§
§name: StringThe referenced name, without its receiver.
kind: ReferenceKind§receiver: Option<String>Receiver written before the final dot, when there was one.
span: Span§owner: Option<String>Enclosing declaration the reference was written in.
string_arguments: Vec<String>Literal string arguments, which carry routes, topics and table names.
name_arguments: Vec<String>Names passed as arguments, in the order written.
app.use("/api", router) mounts one module under a prefix, and the
prefix is a string while the module is a name - so a consumer that
only sees literals sees half the fact and can resolve neither end.
Trait Implementations§
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync 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