Inferable

Trait Inferable 

Source
pub trait Inferable:
    CstRule
    + Serialize
    + Deserialize {
    // Required method
    fn infer(&mut self, nodes: &[SyntaxNode]);
}
Expand description

A trait describing rules for which their configuration can be automatically deduced (inferred) using parsed syntax trees

Required Methods§

Source

fn infer(&mut self, nodes: &[SyntaxNode])

Infer the options for the rule from multiple nodes (which may be from different trees) and change them

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for Box<dyn Inferable>

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'typetag> Serialize for dyn Inferable + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn Inferable + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn Inferable + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn Inferable + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§