#[repr(u8)]pub enum ScalarKind {
Bare = 0,
Quoted = 1,
Raw = 2,
Heredoc = 3,
}Expand description
Kind of scalar.
Variants§
Bare = 0
Bare (unquoted) scalar.
Quoted = 1
Quoted string "...".
Raw = 2
Raw string r#"..."#.
Heredoc = 3
Heredoc <<DELIM...DELIM.
Trait Implementations§
Source§impl Clone for ScalarKind
impl Clone for ScalarKind
Source§fn clone(&self) -> ScalarKind
fn clone(&self) -> ScalarKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarKind
impl Debug for ScalarKind
Source§impl PartialEq for ScalarKind
impl PartialEq for ScalarKind
impl Copy for ScalarKind
impl Eq for ScalarKind
impl StructuralPartialEq for ScalarKind
Auto Trait Implementations§
impl Freeze for ScalarKind
impl RefUnwindSafe for ScalarKind
impl Send for ScalarKind
impl Sync for ScalarKind
impl Unpin for ScalarKind
impl UnwindSafe for ScalarKind
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