Struct rune::UnitBuilder [−][src]
Instructions from a single source file.
Implementations
impl UnitBuilder
[src]
pub fn with_default_prelude() -> Self
[src]
Construct a new unit with the default prelude.
pub fn build(self) -> Result<Unit, BuildError>
[src]
Convert into a runtime unit, shedding our build metadata in the process.
Returns None
if the builder is still in use.
Trait Implementations
impl Clone for UnitBuilder
[src]
fn clone(&self) -> UnitBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnitBuilder
[src]
impl Default for UnitBuilder
[src]
fn default() -> UnitBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for UnitBuilder
impl !Send for UnitBuilder
impl !Sync for UnitBuilder
impl Unpin for UnitBuilder
impl !UnwindSafe for UnitBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[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>,