pub struct FeatureSet {
pub has_signals: bool,
pub has_effects: bool,
pub has_vdom: bool,
pub has_ssr: bool,
pub used_core_functions: HashSet<String>,
pub used_dom_functions: HashSet<String>,
}Expand description
特征集,用于分析模块使用的功能
Fields§
§has_signals: bool是否使用了信号
has_effects: bool是否使用了副作用
has_vdom: bool是否使用了虚拟 DOM
has_ssr: bool是否使用了 SSR
used_core_functions: HashSet<String>使用的核心函数
used_dom_functions: HashSet<String>使用的 DOM 函数
Implementations§
Source§impl FeatureSet
impl FeatureSet
Sourcepub fn merge(&mut self, other: &FeatureSet)
pub fn merge(&mut self, other: &FeatureSet)
合并另一个特征集到当前集
Trait Implementations§
Source§impl Clone for FeatureSet
impl Clone for FeatureSet
Source§fn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeatureSet
impl Debug for FeatureSet
Source§impl Default for FeatureSet
impl Default for FeatureSet
Source§fn default() -> FeatureSet
fn default() -> FeatureSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FeatureSet
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnsafeUnpin for FeatureSet
impl UnwindSafe for FeatureSet
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,
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