Enum gimli::write::LineString
source · pub enum LineString {
String(Vec<u8>),
StringRef(StringId),
LineStringRef(LineStringId),
}
Expand description
A string value for use in defining paths in line number programs.
Variants§
String(Vec<u8>)
A slice of bytes representing a string. Must not include null bytes. Not guaranteed to be UTF-8 or anything like that.
StringRef(StringId)
A reference to a string in the .debug_str
section.
LineStringRef(LineStringId)
A reference to a string in the .debug_line_str
section.
Implementations§
source§impl LineString
impl LineString
Trait Implementations§
source§impl Clone for LineString
impl Clone for LineString
source§fn clone(&self) -> LineString
fn clone(&self) -> LineString
Returns a copy 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 LineString
impl Debug for LineString
source§impl Hash for LineString
impl Hash for LineString
source§impl PartialEq for LineString
impl PartialEq for LineString
impl Eq for LineString
impl StructuralPartialEq for LineString
Auto Trait Implementations§
impl Freeze for LineString
impl RefUnwindSafe for LineString
impl Send for LineString
impl Sync for LineString
impl Unpin for LineString
impl UnwindSafe for LineString
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§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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.