pub struct ProjectDocument { /* private fields */ }Implementations§
Source§impl ProjectDocument
impl ProjectDocument
pub fn parse(source: String) -> Result<Self, ProjectError>
pub fn from_reader(reader: impl Read) -> Result<Self, ProjectError>
pub fn source(&self) -> &str
pub const fn view(&self) -> ProjectView<'_>
pub fn write_to(&self, writer: impl Write) -> Result<(), ProjectError>
pub fn canonical_text(&self) -> Result<String, ProjectError>
pub fn set_text_variable( &mut self, name: &str, value: &str, ) -> Result<bool, ProjectError>
pub fn remove_text_variable(&mut self, name: &str) -> Result<bool, ProjectError>
pub fn add_variant( &mut self, name: &str, description: Option<&str>, ) -> Result<ProjectVariant, ProjectError>
pub fn remove_variant( &mut self, name: &str, ) -> Result<Option<ProjectVariant>, ProjectError>
pub fn rename_variant( &mut self, old_name: &str, new_name: &str, ) -> Result<bool, ProjectError>
pub fn set_path( &mut self, dotted_path: &str, value: Value, ) -> Result<bool, ProjectError>
Trait Implementations§
Source§impl Clone for ProjectDocument
impl Clone for ProjectDocument
Source§fn clone(&self) -> ProjectDocument
fn clone(&self) -> ProjectDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProjectDocument
impl RefUnwindSafe for ProjectDocument
impl Send for ProjectDocument
impl Sync for ProjectDocument
impl Unpin for ProjectDocument
impl UnsafeUnpin for ProjectDocument
impl UnwindSafe for ProjectDocument
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