pub struct CustomField<F: Fn(Vec3) -> f32 + Send + Sync> {
pub func: F,
}Expand description
Custom scalar field from a closure.
Fields§
§func: FTrait Implementations§
Auto Trait Implementations§
impl<F> Freeze for CustomField<F>where
F: Freeze,
impl<F> RefUnwindSafe for CustomField<F>where
F: RefUnwindSafe,
impl<F> Send for CustomField<F>
impl<F> Sync for CustomField<F>
impl<F> Unpin for CustomField<F>where
F: Unpin,
impl<F> UnsafeUnpin for CustomField<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for CustomField<F>where
F: 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