Struct sysml_parser::ParsedPackage
source · pub struct ParsedPackage { /* private fields */ }
Implementations§
source§impl ParsedPackage
impl ParsedPackage
pub fn new(name: impl ToString) -> Self
pub fn with_blocks(name: impl ToString, blocks: Vec<ParsedBlock>) -> Self
pub fn blocks(&self) -> &Vec<ParsedBlock>
pub fn add_block(&mut self, block: ParsedBlock)
Trait Implementations§
source§impl Clone for ParsedPackage
impl Clone for ParsedPackage
source§fn clone(&self) -> ParsedPackage
fn clone(&self) -> ParsedPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParsedPackage
impl Debug for ParsedPackage
source§impl Default for ParsedPackage
impl Default for ParsedPackage
source§fn default() -> ParsedPackage
fn default() -> ParsedPackage
Returns the “default value” for a type. Read more
source§impl Element for ParsedPackage
impl Element for ParsedPackage
source§fn short_name(&self) -> Option<&str>
fn short_name(&self) -> Option<&str>
The short name of the element, if any.
source§fn is_library_element(&self) -> bool
fn is_library_element(&self) -> bool
Whether this
Element
is contained in the ownership tree of
a library model.source§impl Hash for ParsedPackage
impl Hash for ParsedPackage
source§impl Namespace for ParsedPackage
impl Namespace for ParsedPackage
source§impl Ord for ParsedPackage
impl Ord for ParsedPackage
source§fn cmp(&self, other: &ParsedPackage) -> Ordering
fn cmp(&self, other: &ParsedPackage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ParsedPackage
impl PartialEq for ParsedPackage
source§impl PartialOrd for ParsedPackage
impl PartialOrd for ParsedPackage
impl Eq for ParsedPackage
impl Package for ParsedPackage
impl StructuralPartialEq for ParsedPackage
Auto Trait Implementations§
impl Freeze for ParsedPackage
impl RefUnwindSafe for ParsedPackage
impl Send for ParsedPackage
impl Sync for ParsedPackage
impl Unpin for ParsedPackage
impl UnwindSafe for ParsedPackage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)