Struct docsearch::SimplePath
source · pub struct SimplePath(_, _);
Expand description
Path for any item within a crate (or just the crate itself) like std::vec::Vec
,
anyhow::Result
or thiserror
.
New paths are created by the FromStr
trait:
"anyhow::Result".parse::<docsearch::SimplePath>().unwrap();
Implementations§
source§impl SimplePath
impl SimplePath
sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Get back the original string.
sourcepub fn crate_name(&self) -> &str
pub fn crate_name(&self) -> &str
Crate name part of this path.
This can be used as argument for the start_search
function.
Trait Implementations§
source§impl AsRef<str> for SimplePath
impl AsRef<str> for SimplePath
source§impl Display for SimplePath
impl Display for SimplePath
Auto Trait Implementations§
impl RefUnwindSafe for SimplePath
impl Send for SimplePath
impl Sync for SimplePath
impl Unpin for SimplePath
impl UnwindSafe for SimplePath
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