pub enum FnHandle<'a> {
Owned(Arc<TemplateDefinition>),
Borrowed(Node<FnRef<'a>>),
}
Expand description
Handle to a function definition somewhere in the glslt units
Variants
Owned(Arc<TemplateDefinition>)
Reference to a template definition
Borrowed(Node<FnRef<'a>>)
Reference to a function declaration
Implementations
Trait Implementations
sourceimpl From<Arc<TemplateDefinition>> for FnHandle<'_>
impl From<Arc<TemplateDefinition>> for FnHandle<'_>
sourcefn from(td: Arc<TemplateDefinition>) -> Self
fn from(td: Arc<TemplateDefinition>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> RefUnwindSafe for FnHandle<'a>
impl<'a> Send for FnHandle<'a>
impl<'a> Sync for FnHandle<'a>
impl<'a> Unpin for FnHandle<'a>
impl<'a> UnwindSafe for FnHandle<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more