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