Struct miden_core::debuginfo::SourceId
source · pub struct SourceId(/* private fields */);
Expand description
A SourceId represents the index/identifier associated with a unique source file in a SourceManager implementation.
Implementations§
source§impl SourceId
impl SourceId
pub const UNKNOWN: Self = _
sourcepub fn new(id: u32) -> Self
pub fn new(id: u32) -> Self
Create a new SourceId from a u32
value, but assert if the value is reserved
sourcepub const fn new_unchecked(id: u32) -> Self
pub const fn new_unchecked(id: u32) -> Self
Create a new SourceId from a raw u32
value
pub const fn to_usize(self) -> usize
pub const fn to_u32(self) -> u32
pub const fn is_unknown(&self) -> bool
Trait Implementations§
source§impl Ord for SourceId
impl Ord for SourceId
source§impl PartialOrd for SourceId
impl PartialOrd for SourceId
impl Copy for SourceId
impl Eq for SourceId
impl StructuralPartialEq for SourceId
Auto Trait Implementations§
impl Freeze for SourceId
impl RefUnwindSafe for SourceId
impl Send for SourceId
impl Sync for SourceId
impl Unpin for SourceId
impl UnwindSafe for SourceId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)