pub enum RawValue {
Object(RawObject),
Array(RawArray),
Boolean(bool),
Null,
String(RawString),
Number(Number),
Substitution(Substitution),
Concat(Concat),
AddAssign(AddAssign),
}
Variants§
Object(RawObject)
Array(RawArray)
Boolean(bool)
Null
String(RawString)
Number(Number)
Substitution(Substitution)
Concat(Concat)
AddAssign(AddAssign)
Implementations§
Source§impl RawValue
impl RawValue
pub fn ty(&self) -> &'static str
pub fn is_simple_value(&self) -> bool
pub fn inclusion(inclusion: Inclusion) -> RawValue
pub fn object(values: Vec<(RawString, RawValue)>) -> RawValue
pub fn array(values: Vec<RawValue>) -> RawValue
pub fn boolean(b: bool) -> RawValue
pub fn null() -> RawValue
pub fn quoted_string(s: impl Into<String>) -> RawValue
pub fn unquoted_string(s: impl Into<String>) -> RawValue
pub fn multiline_string(s: impl Into<String>) -> RawValue
pub fn path_expression(paths: Vec<RawString>) -> RawValue
pub fn number(n: impl Into<Number>) -> RawValue
pub fn substitution(s: Substitution) -> RawValue
pub fn concat( values: Vec<RawValue>, spaces: Vec<Option<String>>, ) -> Result<RawValue>
pub fn add_assign(v: RawValue) -> RawValue
Trait Implementations§
impl Eq for RawValue
impl StructuralPartialEq for RawValue
Auto Trait Implementations§
impl Freeze for RawValue
impl RefUnwindSafe for RawValue
impl !Send for RawValue
impl !Sync for RawValue
impl Unpin for RawValue
impl UnwindSafe for RawValue
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