Struct ra_ap_syntax::ast::String
source · pub struct String { /* private fields */ }
Implementations§
Trait Implementations§
source§impl IsString for String
impl IsString for String
const RAW_PREFIX: &'static str = "r"
const MODE: Mode = Mode::Str
fn is_raw(&self) -> bool
fn quote_offsets(&self) -> Option<QuoteOffsets>
fn text_range_between_quotes(&self) -> Option<TextRange>
fn text_without_quotes(&self) -> &str
fn open_quote_text_range(&self) -> Option<TextRange>
fn close_quote_text_range(&self) -> Option<TextRange>
fn escaped_char_ranges( &self, cb: &mut dyn FnMut(TextRange, Result<char, EscapeError>) )
fn map_range_up(&self, range: TextRange) -> Option<TextRange>
source§impl PartialEq for String
impl PartialEq for String
impl Eq for String
impl StructuralPartialEq for String
Auto Trait Implementations§
impl Freeze for String
impl !RefUnwindSafe for String
impl !Send for String
impl !Sync for String
impl Unpin for String
impl !UnwindSafe for String
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.