Enum inject_lib::Data
source · [−]pub enum Data<'a> {
Str(&'a str),
}
Expand description
Data can be a Path(if we have std), or a String. Data will get handled differently in no_std and std scenarios
Variants
Str(&'a str)
This a Path as a String
Trait Implementations
sourceimpl<'a> Ord for Data<'a>
impl<'a> Ord for Data<'a>
sourceimpl<'a> PartialOrd<Data<'a>> for Data<'a>
impl<'a> PartialOrd<Data<'a>> for Data<'a>
sourcefn partial_cmp(&self, other: &Data<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Data<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Copy for Data<'a>
impl<'a> Eq for Data<'a>
impl<'a> StructuralEq for Data<'a>
impl<'a> StructuralPartialEq for Data<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Data<'a>
impl<'a> Send for Data<'a>
impl<'a> Sync for Data<'a>
impl<'a> Unpin for Data<'a>
impl<'a> UnwindSafe for Data<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more