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 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 StructuralEq for CString
impl StructuralPartialEq for CString
Auto Trait Implementations§
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
§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.