Struct ra_ap_syntax::ast::CString
source · pub struct CString { /* private fields */ }
Implementations§
Trait Implementations§
source§impl IsString for CString
impl IsString for CString
const RAW_PREFIX: &'static str = "cr"
const MODE: Mode = Mode::CStr
fn escaped_char_ranges( &self, cb: &mut dyn FnMut(TextRange, Result<char, EscapeError>) )
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 map_range_up(&self, range: TextRange) -> Option<TextRange>
source§impl PartialEq for CString
impl PartialEq for CString
impl Eq for CString
impl StructuralPartialEq for CString
Auto Trait Implementations§
impl Freeze for CString
impl !RefUnwindSafe for CString
impl !Send for CString
impl !Sync for CString
impl Unpin for CString
impl !UnwindSafe for CString
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.