pub struct OptionItem { /* private fields */ }Implementations§
Source§impl OptionItem
impl OptionItem
pub fn expr(&self) -> Option<Expr>
pub fn default_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for OptionItem
impl AstNode for OptionItem
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 OptionItem
impl Clone for OptionItem
Source§fn clone(&self) -> OptionItem
fn clone(&self) -> OptionItem
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 OptionItem
impl Debug for OptionItem
Source§impl Hash for OptionItem
impl Hash for OptionItem
Source§impl PartialEq for OptionItem
impl PartialEq for OptionItem
impl Eq for OptionItem
impl StructuralPartialEq for OptionItem
Auto Trait Implementations§
impl Freeze for OptionItem
impl !RefUnwindSafe for OptionItem
impl !Send for OptionItem
impl !Sync for OptionItem
impl Unpin for OptionItem
impl !UnwindSafe for OptionItem
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