Struct candid::parser::typing::TypeEnv [−][src]
Implementations
impl TypeEnv
[src]
impl TypeEnv
[src]pub fn new() -> Self
[src]
pub fn ast_to_type(&self, ast: &IDLType) -> Result<Type>
[src]
pub fn ast_to_type(&self, ast: &IDLType) -> Result<Type>
[src]Convert candid AST to internal Type
pub fn merge<'a>(&'a mut self, env: &TypeEnv) -> Result<&'a mut Self>
[src]
pub fn find_type(&self, name: &str) -> Result<&Type>
[src]
pub fn rec_find_type(&self, name: &str) -> Result<&Type>
[src]
pub fn trace_type<'a>(&'a self, t: &'a Type) -> Result<Type>
[src]
pub fn as_func<'a>(&'a self, t: &'a Type) -> Result<&'a Function>
[src]
pub fn as_service<'a>(&'a self, t: &'a Type) -> Result<&'a [(String, Type)]>
[src]
pub fn get_method<'a>(
&'a self,
t: &'a Type,
id: &'a str
) -> Result<&'a Function>
[src]
&'a self,
t: &'a Type,
id: &'a str
) -> Result<&'a Function>
pub fn replace_empty(&mut self) -> Result<()>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeEnv
impl Send for TypeEnv
impl Sync for TypeEnv
impl Unpin for TypeEnv
impl UnwindSafe for TypeEnv
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more