pub struct RawString(RawStringInner);Expand description
Opaque string storage for raw TOML; internal to toml_edit
Tuple Fields§
§0: RawStringInnerImplementations§
Source§impl RawString
impl RawString
pub(crate) fn with_span(span: Range<usize>) -> Self
Sourcepub fn as_str(&self) -> Option<&str>
pub fn as_str(&self) -> Option<&str>
Access the underlying string
This generally requires a DocumentMut.
Sourcepub fn span(&self) -> Option<Range<usize>>
pub fn span(&self) -> Option<Range<usize>>
The location within the original document
This generally requires a Document.
pub(crate) fn to_str<'s>(&'s self, input: &'s str) -> &'s str
pub(crate) fn to_str_with_default<'s>( &'s self, input: Option<&'s str>, default: &'s str, ) -> &'s str
pub(crate) fn despan(&mut self, input: &str)
Trait Implementations§
impl Eq for RawString
impl StructuralPartialEq for RawString
Auto Trait Implementations§
impl Freeze for RawString
impl RefUnwindSafe for RawString
impl Send for RawString
impl Sync for RawString
impl Unpin for RawString
impl UnwindSafe for RawString
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.