pub enum StrOrId<'a> {
Str(&'a str),
Id(u32),
}Expand description
a string or an interned string id (sel: string | number arguments)
Variants§
Trait Implementations§
impl<'a> Copy for StrOrId<'a>
Auto Trait Implementations§
impl<'a> Forget for StrOrId<'a>
impl<'a> Freeze for StrOrId<'a>
impl<'a> Move for StrOrId<'a>
impl<'a> RefUnwindSafe for StrOrId<'a>
impl<'a> Send for StrOrId<'a>
impl<'a> Sync for StrOrId<'a>
impl<'a> Unpin for StrOrId<'a>
impl<'a> UnsafeUnpin for StrOrId<'a>
impl<'a> UnwindSafe for StrOrId<'a>
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