Skip to main content

Go

Struct Go 

Source
pub struct Go;

Trait Implementations§

Source§

impl LanguagePlugin for Go

Source§

fn extensions(&self) -> Vec<String>

Source§

fn lower( &self, path: &RepoPath, text: &str, dialect: Option<&str>, ) -> Result<FileModel, LowerError>

Source§

fn flagged_line_rules(&self) -> Vec<String>

Source§

fn reference_ranges(&self) -> Result<ReferenceRanges, LanguagePluginError>

Source§

fn has_imports(&self) -> bool

Source§

fn manifest_paths( &self, repository_paths: &[RepoPath], ) -> Result<Vec<String>, LanguagePluginError>

Source§

fn analyze_manifests( &self, manifests: Vec<Manifest>, ) -> Result<ManifestAnalysis, LanguagePluginError>

Source§

fn resolve_imports( &self, repository_paths: &[RepoPath], manifests: Vec<Manifest>, requests: Vec<ImportRequest>, package_profiles: &[PackageFrameworkProfiles], ) -> Result<Vec<Resolution>, LanguagePluginError>

Source§

fn entry_points( &self, repository_paths: &[RepoPath], manifests: Vec<Manifest>, ) -> Result<Vec<RepoPath>, LanguagePluginError>

Source§

fn known_dialects(&self) -> Vec<String>

Source§

fn known_framework_profiles(&self) -> Vec<String>

Source§

fn resolve_framework_profiles( &self, _package_root: &str, _files: &[RepoPath], _manifests: Vec<Manifest>, _selection: FrameworkProfileSelection, ) -> Result<FrameworkProfileResult, LanguagePluginError>

Source§

fn has_hazard_rules(&self) -> bool

Source§

fn hazard_rules(&self) -> Vec<String>

Source§

fn has_scope_analysis(&self) -> bool

Source§

fn analyze_scope( &self, _package_root: &str, _dialect: Option<&str>, _artifacts: Vec<FileScopeArtifact>, ) -> Result<ScopeAnalysis, LanguagePluginError>

Auto Trait Implementations§

§

impl Forget for Go

§

impl Freeze for Go

§

impl Move for Go

§

impl RefUnwindSafe for Go

§

impl Send for Go

§

impl Sync for Go

§

impl Unpin for Go

§

impl UnsafeUnpin for Go

§

impl UnwindSafe for Go

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Resource for T
where T: 'static,

Source§

type Rep = Option<T>

The type which is actually stored in-memory for this resource. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.