Struct ra_ap_hir_ty::CallableSig [−][src]
A function signature as seen by type inference: Several parameter types and one return type.
Implementations
impl CallableSig
[src]
pub fn from_params_and_return(
params: Vec<Ty>,
ret: Ty,
is_varargs: bool
) -> CallableSig
[src]
params: Vec<Ty>,
ret: Ty,
is_varargs: bool
) -> CallableSig
pub fn from_fn_ptr(fn_ptr: &FnPointer) -> CallableSig
[src]
pub fn params(&self) -> &[Ty]
[src]
pub fn ret(&self) -> &Ty
[src]
Trait Implementations
impl Clone for CallableSig
[src]
fn clone(&self) -> CallableSig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CallableSig
[src]
impl Eq for CallableSig
[src]
impl HirDisplay for CallableSig
[src]
fn hir_fmt(&self, f: &mut HirFormatter<'_>) -> Result<(), HirDisplayError>
[src]
fn into_displayable<'a>(
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>,
omit_verbose_types: bool,
display_target: DisplayTarget
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>,
omit_verbose_types: bool,
display_target: DisplayTarget
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
fn display<'a>(&'a self, db: &'a dyn HirDatabase) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
Self: Sized,
fn display_truncated<'a>(
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
&'a self,
db: &'a dyn HirDatabase,
max_size: Option<usize>
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
fn display_source_code<'a>(
&'a self,
db: &'a dyn HirDatabase,
module_id: ModuleId
) -> Result<String, DisplaySourceCodeError>
[src]
&'a self,
db: &'a dyn HirDatabase,
module_id: ModuleId
) -> Result<String, DisplaySourceCodeError>
fn display_test<'a>(
&'a self,
db: &'a dyn HirDatabase
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
[src]
&'a self,
db: &'a dyn HirDatabase
) -> HirDisplayWrapper<'a, Self> where
Self: Sized,
impl PartialEq<CallableSig> for CallableSig
[src]
fn eq(&self, other: &CallableSig) -> bool
[src]
fn ne(&self, other: &CallableSig) -> bool
[src]
impl StructuralEq for CallableSig
[src]
impl StructuralPartialEq for CallableSig
[src]
impl TypeWalk for CallableSig
[src]
fn walk(&self, f: &mut impl FnMut(&Ty))
[src]
fn walk_mut_binders(
&mut self,
f: &mut impl FnMut(&mut Ty, DebruijnIndex),
binders: DebruijnIndex
)
[src]
&mut self,
f: &mut impl FnMut(&mut Ty, DebruijnIndex),
binders: DebruijnIndex
)
fn walk_mut(&mut self, f: &mut impl FnMut(&mut Ty))
[src]
fn fold_binders(
self,
f: &mut impl FnMut(Ty, DebruijnIndex) -> Ty,
binders: DebruijnIndex
) -> Self where
Self: Sized,
[src]
self,
f: &mut impl FnMut(Ty, DebruijnIndex) -> Ty,
binders: DebruijnIndex
) -> Self where
Self: Sized,
fn fold(self, f: &mut impl FnMut(Ty) -> Ty) -> Self where
Self: Sized,
[src]
Self: Sized,
fn subst_bound_vars(self, substs: &Substitution) -> Self where
Self: Sized,
[src]
Self: Sized,
fn subst_bound_vars_at_depth(
self,
substs: &Substitution,
depth: DebruijnIndex
) -> Self where
Self: Sized,
[src]
self,
substs: &Substitution,
depth: DebruijnIndex
) -> Self where
Self: Sized,
fn shift_bound_vars(self, n: DebruijnIndex) -> Self where
Self: Sized,
[src]
Self: Sized,
fn shift_bound_vars_out(self, n: DebruijnIndex) -> Self where
Self: Sized + Debug,
[src]
Self: Sized + Debug,
Auto Trait Implementations
impl RefUnwindSafe for CallableSig
impl Send for CallableSig
impl Sync for CallableSig
impl Unpin for CallableSig
impl UnwindSafe for CallableSig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Cast for T
[src]
pub fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
[src]
Self: CastTo<U>,
U: HasInterner,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,