Skip to main content

ViewBuilder

Struct ViewBuilder 

Source
pub struct ViewBuilder<'lb> { /* private fields */ }

Implementations§

Source§

impl<'lb> ViewBuilder<'lb>

Source

pub fn new( context: &'lb ViewContext<'lb>, pc: u32, index: ViewRef, free_mark: FreeMark, lowest_free_mark: Option<Reg>, ) -> ViewBuilder<'lb>

Source

pub fn depend_on_register(&mut self, reg: Reg)

Source

pub fn has_pinned_before(&self, reg: Reg) -> bool

Source

pub fn take_reg(&mut self, reg: Reg) -> ViewOrReg

Source

pub fn take_reg_or_kst(&mut self, rk: RK) -> ViewOrRegOrKst

Source

pub fn can_take_reg_strong(&mut self, reg: Reg) -> bool

Source

pub fn take_reg_strong(&mut self, reg: Reg) -> ViewRef

Source

pub fn is_next_view_self(&self, reg: Reg) -> bool

Source

pub fn take_call_func(&mut self, reg: Reg) -> CallFunc

Source

pub fn take_varargs(&mut self) -> (ViewRef, Reg)

Source

pub fn take_partial_conditional(&mut self) -> (ViewRef, PartialCondInfo)

Source

pub fn take_views_until<F>(&mut self, predicate: F) -> Vec<ViewRef>
where F: Fn(&'lb View) -> bool,

Source

pub fn take_single_view(&mut self) -> ViewRef

Source

pub fn take_scope(&mut self) -> ViewRef

Source

pub fn take_conditional( &mut self, on_true: u32, on_false: u32, ) -> (CondContext, Vec<ViewRef>)

Source

pub fn take_conditional_loadbool(&mut self) -> (CondContext, Vec<ViewRef>)

Source

pub fn take_else(&mut self) -> ViewRef

Source

pub fn take_for_assignment( &mut self, source: AssignSource, lhs: PartialAssignmentLHS, ) -> TakeAssignmentResult

Source

pub fn take_setlist(&mut self, base: Reg, count: Count) -> TableInfo

Source

pub fn take_for_prep(&mut self) -> ViewRef

Source

pub fn take_generic_for_params(&mut self, base: Reg) -> Vec<ViewRef>

Source

pub fn take_loadbool_head(&mut self, dest: Reg) -> Option<ViewRef>

Source

pub fn take_multi_return_value(&mut self, top: Reg) -> (Reg, ViewRef)

Source

pub fn take_simple_cond_tail(&mut self, dest: Reg) -> ViewRef

Source

pub fn allocate(&mut self, alloc: RegRange)

Source

pub fn allocate_single(&mut self, alloc: Reg)

Source

pub fn base(&mut self, reg: Reg)

Source

pub fn build( self, data: Box<dyn ViewData>, view_type: ViewType, key: ViewKeyRef, ) -> View

Auto Trait Implementations§

§

impl<'lb> !RefUnwindSafe for ViewBuilder<'lb>

§

impl<'lb> !Send for ViewBuilder<'lb>

§

impl<'lb> !Sync for ViewBuilder<'lb>

§

impl<'lb> !UnwindSafe for ViewBuilder<'lb>

§

impl<'lb> Freeze for ViewBuilder<'lb>

§

impl<'lb> Unpin for ViewBuilder<'lb>

§

impl<'lb> UnsafeUnpin for ViewBuilder<'lb>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.