pub enum Reference {
PathOnly {
path_prefix: Vec<String>,
path_name: String,
},
FragmentOnly {
fragment_name: String,
},
Both {
path_prefix: Vec<String>,
path_name: String,
fragment_name: String,
},
}
Variants§
Implementations§
Source§impl Reference
impl Reference
pub fn new( path_prefix: Vec<String>, path_name: String, fragment_name: String, ) -> Self
pub fn from_path(path_prefix: Vec<String>, path_name: String) -> Self
pub fn from_fragment_name(fragment_name: String) -> Self
pub fn path(&self) -> Option<String>
pub fn name(&self) -> &str
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.