[][src]Struct rustc_ap_rustc_lexer::ValidatedRawStr

pub struct ValidatedRawStr { /* fields omitted */ }

Raw String that contains a valid prefix (#+") and postfix ("#+) where there are a matching number of # characters in both. Note that this will not consume extra trailing # characters: r###"abcde"#### is lexed as a ValidatedRawString { n_hashes: 3 } followed by a # token.

Methods

impl ValidatedRawStr[src]

pub fn num_hashes(&self) -> u16[src]

Trait Implementations

impl Clone for ValidatedRawStr[src]

impl Copy for ValidatedRawStr[src]

impl Debug for ValidatedRawStr[src]

impl Eq for ValidatedRawStr[src]

impl PartialEq<ValidatedRawStr> for ValidatedRawStr[src]

impl StructuralEq for ValidatedRawStr[src]

impl StructuralPartialEq for ValidatedRawStr[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<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, 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.