Struct protobuf_support::lexer::str_lit::StrLit
source · pub struct StrLit {
pub escaped: String,
}
Expand description
String literal, both string
and bytes
.
Fields§
§escaped: String
Implementations§
source§impl StrLit
impl StrLit
sourcepub fn decode_utf8(&self) -> StrLitDecodeResult<String>
pub fn decode_utf8(&self) -> StrLitDecodeResult<String>
May fail if not valid UTF8
pub fn decode_bytes(&self) -> StrLitDecodeResult<Vec<u8>>
pub fn quoted(&self) -> String
Trait Implementations§
source§impl PartialEq for StrLit
impl PartialEq for StrLit
impl Eq for StrLit
impl StructuralEq for StrLit
impl StructuralPartialEq for StrLit
Auto Trait Implementations§
impl RefUnwindSafe for StrLit
impl Send for StrLit
impl Sync for StrLit
impl Unpin for StrLit
impl UnwindSafe for StrLit
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