pub trait GetRange {
// Required method
fn get_range(&self) -> Result<Range, GetRangeError>;
}Expand description
A trait for getting the range for this specific item.
Required Methods§
Sourcefn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.