[][src]Struct open_vaf::StringLiteral

pub struct StringLiteral {
    pub start: u16,
    pub end: u16,
}

Fields

start: u16end: u16

Implementations

impl StringLiteral[src]

pub fn new(src: &str) -> Result<Self, ()>[src]

pub fn as_usize_range(self) -> Range<usize>[src]

pub fn as_raw_range(self) -> Range<u16>[src]

pub fn as_str<'lt>(self) -> MappedRwLockReadGuard<'lt, str>[src]

pub const fn empty() -> Self[src]

Trait Implementations

impl Clone for StringLiteral[src]

impl Copy for StringLiteral[src]

impl Debug for StringLiteral[src]

impl Display for StringLiteral[src]

impl Eq for StringLiteral[src]

impl From<Range<u16>> for StringLiteral[src]

impl From<Range<usize>> for StringLiteral[src]

impl Into<Range<u16>> for StringLiteral[src]

impl Into<Range<usize>> for StringLiteral[src]

impl PartialEq<StringLiteral> for StringLiteral[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.