pub struct Method<T: Id> { /* private fields */ }
Implementations§
Source§impl<T: Id> Method<T>
impl<T: Id> Method<T>
pub fn new<S: Into<String>>( name: S, typ: Type, expr: Option<Expr>, position: Option<Position>, ) -> Self
pub fn add_parameter(&mut self, parameter: Parameter)
pub fn parameters(&self) -> &Vec<Parameter>
pub fn parameters_type(&self) -> Vec<Type>
pub fn duplicate(&self) -> Result<(), Error>
pub fn check_bounded(&self, problem: &Problem) -> Result<(), Error>
pub fn resolve_type_expr(&mut self, entries: &TypeEntries) -> Result<(), Error>
Trait Implementations§
Source§impl GetFromId<MethodId<StructureId>, Method<StructureId>> for Problem
impl GetFromId<MethodId<StructureId>, Method<StructureId>> for Problem
fn get(&self, id: MethodId<StructureId>) -> Option<&Method<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 WithExpr for Method<ClassId>
impl WithExpr for Method<ClassId>
fn expr(&self) -> &Option<Expr>
fn set_expr(&mut self, expr: Option<Expr>)
fn entries(&self) -> Entries
fn resolve_type_expr(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn resolve_expr( &self, problem: &Problem, entries: &Entries, ) -> Result<Self, Error>
fn check_parameter_size(&self, problem: &Problem) -> Result<(), Error>
fn check_type(&self, problem: &Problem) -> Result<(), Error>
Source§impl WithExpr for Method<StructureId>
impl WithExpr for Method<StructureId>
fn expr(&self) -> &Option<Expr>
fn set_expr(&mut self, expr: Option<Expr>)
fn entries(&self) -> Entries
fn resolve_type_expr(&mut self, entries: &TypeEntries) -> Result<(), Error>
fn resolve_expr( &self, problem: &Problem, entries: &Entries, ) -> Result<Self, Error>
fn check_parameter_size(&self, problem: &Problem) -> Result<(), Error>
fn check_type(&self, problem: &Problem) -> Result<(), Error>
Source§impl<T: Id> WithType for Method<T>
impl<T: Id> WithType for Method<T>
fn typ(&self) -> &Type
fn set_type(&mut self, typ: 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<T> Freeze for Method<T>where
T: Freeze,
impl<T> RefUnwindSafe for Method<T>where
T: RefUnwindSafe,
impl<T> Send for Method<T>where
T: Send,
impl<T> Sync for Method<T>where
T: Sync,
impl<T> Unpin for Method<T>where
T: Unpin,
impl<T> UnwindSafe for Method<T>where
T: UnwindSafe,
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