pub struct YamlFlowMapValue(/* private fields */);Expand description
The value side of a flow-map entry.
Implementations§
Source§impl YamlFlowMapValue
impl YamlFlowMapValue
Sourcepub fn as_scalar(&self) -> Option<YamlScalar>
pub fn as_scalar(&self) -> Option<YamlScalar>
The value as a scalar, or None if it is a container or empty.
pub fn as_block_map(&self) -> Option<YamlBlockMap>
pub fn as_block_sequence(&self) -> Option<YamlBlockSequence>
pub fn as_flow_map(&self) -> Option<YamlFlowMap>
pub fn as_flow_sequence(&self) -> Option<YamlFlowSequence>
Sourcepub fn tag(&self) -> Option<SyntaxToken>
pub fn tag(&self) -> Option<SyntaxToken>
The explicit YAML_TAG token decorating this value (e.g. !expr),
if any. Used by the hashpipe formatter to preserve chunk-option tags.
Trait Implementations§
Source§impl AstNode for YamlFlowMapValue
impl AstNode for YamlFlowMapValue
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for YamlFlowMapValue
impl Clone for YamlFlowMapValue
Source§fn clone(&self) -> YamlFlowMapValue
fn clone(&self) -> YamlFlowMapValue
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 YamlFlowMapValue
impl Debug for YamlFlowMapValue
impl Eq for YamlFlowMapValue
Source§impl Hash for YamlFlowMapValue
impl Hash for YamlFlowMapValue
Source§impl PartialEq for YamlFlowMapValue
impl PartialEq for YamlFlowMapValue
Source§fn eq(&self, other: &YamlFlowMapValue) -> bool
fn eq(&self, other: &YamlFlowMapValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for YamlFlowMapValue
Auto Trait Implementations§
impl !RefUnwindSafe for YamlFlowMapValue
impl !Send for YamlFlowMapValue
impl !Sync for YamlFlowMapValue
impl !UnwindSafe for YamlFlowMapValue
impl Freeze for YamlFlowMapValue
impl Unpin for YamlFlowMapValue
impl UnsafeUnpin for YamlFlowMapValue
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