pub struct CairoNonGenericFunction {
pub name: String,
pub inputs_types: Vec<SyntaxNode>,
pub return_type: Option<SyntaxNode>,
}
Fields§
§name: String
§inputs_types: Vec<SyntaxNode>
§return_type: Option<SyntaxNode>
Implementations§
Source§impl CairoNonGenericFunction
impl CairoNonGenericFunction
pub fn new( name: String, inputs_types: Vec<SyntaxNode>, return_type: Option<SyntaxNode>, ) -> CairoNonGenericFunction
Sourcepub fn get_efs_signature(
&self,
db: &RootDatabase,
cairo_structs: &[CairoStruct],
cairo_enums: &[CairoEnum],
) -> Result<String>
pub fn get_efs_signature( &self, db: &RootDatabase, cairo_structs: &[CairoStruct], cairo_enums: &[CairoEnum], ) -> Result<String>
Get the Extended Function Selector signature
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CairoNonGenericFunction
impl RefUnwindSafe for CairoNonGenericFunction
impl Send for CairoNonGenericFunction
impl Sync for CairoNonGenericFunction
impl Unpin for CairoNonGenericFunction
impl UnwindSafe for CairoNonGenericFunction
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more