Skip to main content

TeksiRoot

Struct TeksiRoot 

Source
pub struct TeksiRoot {
    pub ctx: Option<Ident>,
    pub root: TeksiElement,
}
Expand description

The root of a teksu! invocation.

Fields§

§ctx: Option<Ident>

If Some(ident), the macro was called as teksu!(ident => ...) and expansion should wrap the root in ident.add(...) to return a WidgetId. If None, expansion returns the widget value directly.

§root: TeksiElement

Auto Trait Implementations§

§

impl !Send for TeksiRoot

§

impl !Sync for TeksiRoot

§

impl Forget for TeksiRoot

§

impl Freeze for TeksiRoot

§

impl Move for TeksiRoot

§

impl RefUnwindSafe for TeksiRoot
where NonZero<u32>: RefUnwindSafe, ProcMacroAutoTraits: RefUnwindSafe, RcVec<TokenTree>: RefUnwindSafe,

§

impl Unpin for TeksiRoot

§

impl UnsafeUnpin for TeksiRoot

§

impl UnwindSafe for TeksiRoot
where NonZero<u32>: UnwindSafe, BoxRaw<str>: UnwindSafe, ProcMacroAutoTraits: UnwindSafe, RawVecInner: UnwindSafe, Rc<Vec<TokenTree>>: UnwindSafe, BoxRaw<Expr>: UnwindSafe, BoxRaw<Pat>: UnwindSafe, BoxRaw<LitRepr>: UnwindSafe, BoxRaw<LitIntRepr>: UnwindSafe, BoxRaw<LitFloatRepr>: UnwindSafe, BoxRaw<Type>: UnwindSafe, BoxRaw<FieldPat>: UnwindSafe, BoxRaw<Path>: UnwindSafe, BoxRaw<Lifetime>: UnwindSafe, BoxRaw<CapturedParam>: UnwindSafe, BoxRaw<TypeParamBound>: UnwindSafe, BoxRaw<GenericParam>: UnwindSafe, BoxRaw<WherePredicate>: UnwindSafe, BoxRaw<Field>: UnwindSafe, BoxRaw<Variant>: UnwindSafe, BoxRaw<FnArg>: UnwindSafe, BoxRaw<Block>: UnwindSafe, BoxRaw<UseTree>: UnwindSafe, BoxRaw<FieldValue>: UnwindSafe, BoxRaw<NamedArg>: UnwindSafe, BoxRaw<GenericArgument>: UnwindSafe, BoxRaw<PathSegment>: UnwindSafe, BoxRaw<TeksiElse>: UnwindSafe,

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, 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.