pub enum RawString {
QuotedString(String),
UnquotedString(String),
MultilineString(String),
PathExpression(PathExpression),
}
Expand description
Represents the different types of string values in a HOCON configuration.
This enum covers the three standard HOCON string types, plus an additional variant to handle path expressions.
Variants§
QuotedString(String)
A string literal enclosed in double quotes.
UnquotedString(String)
A simple string without quotes.
MultilineString(String)
A multiline string enclosed in three double quotes.
PathExpression(PathExpression)
A path expression
Implementations§
Source§impl RawString
impl RawString
pub fn ty(&self) -> &'static str
pub fn as_path(&self) -> Vec<&str>
pub fn into_path(self) -> Path
pub fn quoted(string: impl Into<String>) -> Self
pub fn unquoted(string: impl Into<String>) -> Self
pub fn multiline(string: impl Into<String>) -> Self
pub fn path_expression(paths: Vec<RawString>) -> Self
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