pub struct Field { /* private fields */ }Expand description
Typed valid DCF field.
Implementations§
Source§impl Field
impl Field
Sourcepub fn syntax(&self) -> &SyntaxNode<DcfLanguage>
pub fn syntax(&self) -> &SyntaxNode<DcfLanguage>
Returns the underlying Rowan node.
Sourcepub fn value(&self) -> ValueText
pub fn value(&self) -> ValueText
Returns the unfolded logical value and its enclosing source range.
Sourcepub fn source_range(&self) -> SourceSpan
pub fn source_range(&self) -> SourceSpan
Returns the field’s source range, including its final line ending.
Trait Implementations§
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl !RefUnwindSafe for Field
impl !Send for Field
impl !Sync for Field
impl !UnwindSafe for Field
impl Freeze for Field
impl Unpin for Field
impl UnsafeUnpin for Field
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