pub struct ReplacementScalar { /* private fields */ }Expand description
A typed scalar value to place at an existing YAML value-scalar span.
Implementations§
Source§impl ReplacementScalar
impl ReplacementScalar
Sourcepub fn string(value: impl Into<String>) -> Self
pub fn string(value: impl Into<String>) -> Self
Creates a non-sensitive YAML string replacement.
Sourcepub fn sensitive_string(value: impl Into<String>) -> Self
pub fn sensitive_string(value: impl Into<String>) -> Self
Creates a sensitive YAML string replacement.
The value remains available only through the explicit edit operation. Debug output for
the replacement, containing edit, and successful result is redacted.
Sourcepub fn number(value: impl Into<String>) -> Self
pub fn number(value: impl Into<String>) -> Self
Creates a YAML number replacement whose spelling is validated when the edit is applied.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether the replacement contains sensitive caller-supplied content.
Trait Implementations§
Source§impl Clone for ReplacementScalar
impl Clone for ReplacementScalar
Source§fn clone(&self) -> ReplacementScalar
fn clone(&self) -> ReplacementScalar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReplacementScalar
impl Debug for ReplacementScalar
impl Eq for ReplacementScalar
Source§impl PartialEq for ReplacementScalar
impl PartialEq for ReplacementScalar
impl StructuralPartialEq for ReplacementScalar
Auto Trait Implementations§
impl Freeze for ReplacementScalar
impl RefUnwindSafe for ReplacementScalar
impl Send for ReplacementScalar
impl Sync for ReplacementScalar
impl Unpin for ReplacementScalar
impl UnsafeUnpin for ReplacementScalar
impl UnwindSafe for ReplacementScalar
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