pub struct Origin {
pub path: String,
pub item: String,
}Expand description
What a generated item comes from, as the comment line above it says:
// from <path>: <item>, the definition item in path, relative to
the library’s root.
Fields§
§path: StringWhere the item is defined, such as src/lib.rs.
item: StringThe definition there, such as Command.
Implementations§
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Forget for Origin
impl Freeze for Origin
impl Move for Origin
impl RefUnwindSafe for Origin
impl Send for Originwhere
RawVecInner: Send,
impl Sync for Originwhere
RawVecInner: Sync,
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Originwhere
RawVecInner: UnwindSafe,
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