Struct DartFormatter
pub struct DartFormatter;Trait Implementations§
§impl EcosystemFormatter for DartFormatter
impl EcosystemFormatter for DartFormatter
§fn format_version_for_text_edit(&self, version: &str) -> String
fn format_version_for_text_edit(&self, version: &str) -> String
Format version string for code action text edit.
§fn package_url(&self, name: &str) -> String
fn package_url(&self, name: &str) -> String
Get package URL for hover markdown.
§fn version_satisfies_requirement(
&self,
version: &str,
requirement: &str,
) -> bool
fn version_satisfies_requirement( &self, version: &str, requirement: &str, ) -> bool
Check if a version satisfies a requirement string.
§fn normalize_package_name(&self, name: &str) -> String
fn normalize_package_name(&self, name: &str) -> String
Normalize package name for lookup (default: identity).
§fn yanked_message(&self) -> &'static str
fn yanked_message(&self) -> &'static str
Message for yanked/deprecated versions in diagnostics.
§fn yanked_label(&self) -> &'static str
fn yanked_label(&self) -> &'static str
Label for yanked versions in hover.
§fn is_position_on_dependency(
&self,
dep: &dyn Dependency,
position: Position,
) -> bool
fn is_position_on_dependency( &self, dep: &dyn Dependency, position: Position, ) -> bool
Detect if cursor position is on a dependency for code actions.
Auto Trait Implementations§
impl Freeze for DartFormatter
impl RefUnwindSafe for DartFormatter
impl Send for DartFormatter
impl Sync for DartFormatter
impl Unpin for DartFormatter
impl UnwindSafe for DartFormatter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more