pub struct ConditionalWithExpr { /* private fields */ }Implementations§
Source§impl ConditionalWithExpr
impl ConditionalWithExpr
pub fn inline_branches(&self) -> Option<InlineBranchesCond>
pub fn multiline_branches(&self) -> Option<MultilineBranchesCond>
pub fn branchless_body(&self) -> Option<BranchlessCondBody>
Trait Implementations§
Source§impl AstNode for ConditionalWithExpr
impl AstNode for ConditionalWithExpr
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for ConditionalWithExpr
impl Clone for ConditionalWithExpr
Source§fn clone(&self) -> ConditionalWithExpr
fn clone(&self) -> ConditionalWithExpr
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 ConditionalWithExpr
impl Debug for ConditionalWithExpr
Source§impl Display for ConditionalWithExpr
impl Display for ConditionalWithExpr
impl Eq for ConditionalWithExpr
Source§impl Hash for ConditionalWithExpr
impl Hash for ConditionalWithExpr
Source§impl PartialEq for ConditionalWithExpr
impl PartialEq for ConditionalWithExpr
Source§fn eq(&self, other: &ConditionalWithExpr) -> bool
fn eq(&self, other: &ConditionalWithExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConditionalWithExpr
Auto Trait Implementations§
impl !RefUnwindSafe for ConditionalWithExpr
impl !Send for ConditionalWithExpr
impl !Sync for ConditionalWithExpr
impl !UnwindSafe for ConditionalWithExpr
impl Freeze for ConditionalWithExpr
impl Unpin for ConditionalWithExpr
impl UnsafeUnpin for ConditionalWithExpr
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