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"
fn is_raw(&self) -> bool
fn quote_offsets(&self) -> Option<QuoteOffsets>
fn text_range_between_quotes(&self) -> Option<TextRange>
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<String> for String
impl PartialEq<String> for String
impl Eq for String
impl StructuralEq for String
impl StructuralPartialEq for String
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.