#[repr(C)]pub struct LkEnvData<'o> {
pub point: Option<&'o dyn Point>,
pub argv: Option<&'o [&'o [u8]]>,
pub domain: Option<&'o Domain>,
pub group: Option<&'o GroupID>,
pub pubkey: Option<&'o PubKey>,
pub key: Option<&'o LkIdentity>,
pub lks: Option<&'o LkSystem>,
}
Expand description
Data set by user for custom scopes
Fields§
§point: Option<&'o dyn Point>
Set the point in scope - sets scopes like [hash:str], [group], [domain:str]\
argv: Option<&'o [&'o [u8]]>
Add the argv scope e.g. “[0] and [1]”
domain: Option<&'o Domain>
set the working domain, usable as the AB expr [wd]
group: Option<&'o GroupID>
set the working group, usable as the AB expr [wg]
pubkey: Option<&'o PubKey>
set the working pubkey, usable as the AB expr [wpubkey] - this is not the same as key:pub
key: Option<&'o LkIdentity>
set the default signing key - this is unrelated to the pubkey
lks: Option<&'o LkSystem>
Trait Implementations§
Source§impl<'o> AsScopeSet for LkEnvData<'o>
impl<'o> AsScopeSet for LkEnvData<'o>
type Scope = ((Option<ScopeSet<PointScope<'o>>>, Option<AsScope<ArgV<'o>>>), (Option<AsScope<ScopeLocalLkEnv<'o>>>, ((((AsScope<BytesFE>, AsScope<UIntFE>, (AsScope<BaseNScope>, AsScope<HashFE>, AsScope<Dot>)), ((AsScope<Comment>, AsScope<Help>), AsScope<LogicOps>, (AsScope<Encode>, AsScope<Repr>, AsScope<ParserScope>))), AsScope<StaticLNS>, AsScope<FlagsScope>), (AsScope<StampEF>, AsScope<LkPathEScope>), ScopeSet<ThreadLocal>), AsScope<AdhocKey>), ScopeSet<RtScopeSet<SystemOrThreadLocal<'o>>>)
fn as_scope_set(&self) -> Self::Scope
impl<'o> Copy for LkEnvData<'o>
Auto Trait Implementations§
impl<'o> Freeze for LkEnvData<'o>
impl<'o> !RefUnwindSafe for LkEnvData<'o>
impl<'o> !Send for LkEnvData<'o>
impl<'o> !Sync for LkEnvData<'o>
impl<'o> Unpin for LkEnvData<'o>
impl<'o> !UnwindSafe for LkEnvData<'o>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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