pub struct Structure { /* private fields */ }
Implementations§
Source§impl Structure
impl Structure
pub fn new<S: Into<String>>(name: S, position: Option<Position>) -> Self
pub fn add_attribute( &mut self, attribute: Attribute<StructureId>, ) -> AttributeId<StructureId>
pub fn get_attribute( &self, id: AttributeId<StructureId>, ) -> Option<&Attribute<StructureId>>
pub fn attributes(&self) -> &Vec<Attribute<StructureId>>
pub fn find_attribute(&self, name: &str) -> Option<&Attribute<StructureId>>
pub fn add_method( &mut self, method: Method<StructureId>, ) -> MethodId<StructureId>
pub fn get_method( &self, id: MethodId<StructureId>, ) -> Option<&Method<StructureId>>
pub fn methods(&self) -> &Vec<Method<StructureId>>
pub fn find_method(&self, name: &str) -> Option<&Method<StructureId>>
pub fn instances(&self, problem: &Problem) -> Vec<InstanceId>
pub fn is_empty(&self, problem: &Problem) -> bool
pub fn local_naming(&self) -> Vec<Naming> ⓘ
pub fn duplicate(&self) -> Result<(), Error>
pub fn resolve_type_expr(&mut self, entries: &TypeEntries) -> Result<(), Error>
pub fn resolve_expr( &self, problem: &Problem, entries: &Entries, ) -> Result<Structure, Error>
pub fn check_parameter_size(&self, problem: &Problem) -> Result<(), Error>
pub fn check_bounded(&self, problem: &Problem) -> Result<(), Error>
pub fn check_type(&self, problem: &Problem) -> Result<(), Error>
Trait Implementations§
Source§impl GetFromId<AttributeId<StructureId>, Attribute<StructureId>> for Structure
impl GetFromId<AttributeId<StructureId>, Attribute<StructureId>> for Structure
fn get(&self, id: AttributeId<StructureId>) -> Option<&Attribute<StructureId>>
Source§impl GetFromId<MethodId<StructureId>, Method<StructureId>> for Structure
impl GetFromId<MethodId<StructureId>, Method<StructureId>> for Structure
fn get(&self, id: MethodId<StructureId>) -> Option<&Method<StructureId>>
Source§impl Named<StructureId> for Structure
impl Named<StructureId> for Structure
Source§impl WithType for Structure
impl WithType for Structure
fn typ(&self) -> &Type
fn set_type(&mut self, _: Type)
fn resolve_type_children(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn check_interval_children(&self, problem: &Problem) -> Result<(), Error>
fn resolve_type(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn check_interval(&self, problem: &Problem) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Structure
impl RefUnwindSafe for Structure
impl Send for Structure
impl Sync for Structure
impl Unpin for Structure
impl UnwindSafe for Structure
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