pub enum ResourceNameOrId {
Name(ResourceName),
Id(u16),
}
Expand description
A resource name or ID.
Can be either a string or a numeric ID.
Variants
Name(ResourceName)
A resource name.
Id(u16)
A resource ID.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ResourceNameOrId
impl Send for ResourceNameOrId
impl Sync for ResourceNameOrId
impl Unpin for ResourceNameOrId
impl UnwindSafe for ResourceNameOrId
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