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
sourceimpl LineString
impl LineString
Trait Implementations
sourceimpl Clone for LineString
impl Clone for LineString
sourcefn clone(&self) -> LineString
fn clone(&self) -> LineString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LineString
impl Debug for LineString
sourceimpl Hash for LineString
impl Hash for LineString
sourceimpl PartialEq<LineString> for LineString
impl PartialEq<LineString> for LineString
sourcefn eq(&self, other: &LineString) -> bool
fn eq(&self, other: &LineString) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LineString) -> bool
fn ne(&self, other: &LineString) -> bool
This method tests for !=
.
impl Eq for LineString
impl StructuralEq for LineString
impl StructuralPartialEq for LineString
Auto Trait Implementations
impl RefUnwindSafe for LineString
impl Send for LineString
impl Sync for LineString
impl Unpin for LineString
impl UnwindSafe for LineString
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more