pub struct ResourceId {
pub id: u32,
pub path: String,
}Expand description
Used in the SoundID and the MusicID modes to specify what file a sound is related to and its related ID.
Fields§
§id: u32The ID for CNM Online. If 2 are the same, the last is used and a memory leak occurs.
path: StringThe path to the file in question. It is relative based on the exe’s directory and doesn’t need a “./” at the start.
Trait Implementations§
Source§impl Clone for ResourceId
impl Clone for ResourceId
Source§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceId
impl Debug for ResourceId
Source§impl Display for ResourceId
impl Display for ResourceId
Source§impl PartialEq for ResourceId
impl PartialEq for ResourceId
impl StructuralPartialEq for ResourceId
Auto Trait Implementations§
impl Freeze for ResourceId
impl RefUnwindSafe for ResourceId
impl Send for ResourceId
impl Sync for ResourceId
impl Unpin for ResourceId
impl UnwindSafe for ResourceId
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