Trait ConfigurationFormat

Source
pub trait ConfigurationFormat
where Self: Sized,
{ // Required methods fn from<R: Read>(reader: R) -> Result<Self, Error>; fn current_version(&self) -> Result<&GradleVersion, Error>; fn is_modified(&self) -> bool; fn sync_version(&mut self, new_version: &Version) -> Result<(), Error>; fn lines(&self) -> Vec<String>; // Provided method fn write<W: Write>(&self, writer: &mut W) -> Result<(), Error> { ... } }

Required Methods§

Source

fn from<R: Read>(reader: R) -> Result<Self, Error>

Source

fn current_version(&self) -> Result<&GradleVersion, Error>

Source

fn is_modified(&self) -> bool

Source

fn sync_version(&mut self, new_version: &Version) -> Result<(), Error>

Source

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

Provided Methods§

Source

fn write<W: Write>(&self, writer: &mut W) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§