pub struct ThingyFactory<'a>(/* private fields */);Implementations§
Source§impl<'a> ThingyFactory<'a>
impl<'a> ThingyFactory<'a>
pub fn create_public_ns(&self, parent: Option<Thingy>) -> Thingy
pub fn create_private_ns(&self, parent: Option<Thingy>) -> Thingy
pub fn create_protected_ns(&self, parent: Option<Thingy>) -> Thingy
pub fn create_static_protected_ns(&self, parent: Option<Thingy>) -> Thingy
pub fn create_internal_ns(&self, parent: Option<Thingy>) -> Thingy
pub fn create_explicit_ns(&self, uri: String) -> Thingy
pub fn create_user_ns(&self, uri: String) -> Thingy
pub fn create_qname(&self, namespace: &Thingy, local_name: String) -> QName
Sourcepub fn create_package<'b>(
&self,
name: impl IntoIterator<Item = &'b str>,
) -> Thingy
pub fn create_package<'b>( &self, name: impl IntoIterator<Item = &'b str>, ) -> Thingy
pub fn create_alias(&self, name: QName, alias_of: Thingy) -> Thingy
Sourcepub fn create_class_type(
&self,
name: QName,
ns_for_prototype: &Thingy,
) -> Thingy
pub fn create_class_type( &self, name: QName, ns_for_prototype: &Thingy, ) -> Thingy
§Parameters
ns_for_prototype: The namespace used for theprototypeproperty. Eitherpublicorinternal.
pub fn create_enum_type(&self, name: QName, ns_for_prototype: &Thingy) -> Thingy
pub fn create_interface_type(&self, name: QName) -> Thingy
Sourcepub fn create_type_after_substitution(
&self,
origin: &Thingy,
substitute_types: &SharedArray<Thingy>,
) -> Thingy
pub fn create_type_after_substitution( &self, origin: &Thingy, substitute_types: &SharedArray<Thingy>, ) -> Thingy
Interns type after substitution.
Sourcepub fn create_tuple_type(&self, element_types: Vec<Thingy>) -> Thingy
pub fn create_tuple_type(&self, element_types: Vec<Thingy>) -> Thingy
Interns a tuple type.
Sourcepub fn create_function_type(
&self,
params: Vec<Rc<SemanticFunctionTypeParameter>>,
result_type: Thingy,
) -> Thingy
pub fn create_function_type( &self, params: Vec<Rc<SemanticFunctionTypeParameter>>, result_type: Thingy, ) -> Thingy
Interns a function type.
Sourcepub fn create_nullable_type(&self, base: &Thingy) -> Thingy
pub fn create_nullable_type(&self, base: &Thingy) -> Thingy
Interns a nullable type.
Sourcepub fn create_non_nullable_type(&self, base: &Thingy) -> Thingy
pub fn create_non_nullable_type(&self, base: &Thingy) -> Thingy
Interns a non nullable type.
pub fn create_type_parameter_type(&self, name: &QName) -> Thingy
pub fn create_variable_slot( &self, name: &QName, read_only: bool, static_type: &Thingy, ) -> Thingy
Sourcepub fn create_variable_slot_after_substitution(
&self,
origin: &Thingy,
indirect_type_params: &SharedArray<Thingy>,
indirect_substitute_types: &SharedArray<Thingy>,
) -> Thingy
pub fn create_variable_slot_after_substitution( &self, origin: &Thingy, indirect_type_params: &SharedArray<Thingy>, indirect_substitute_types: &SharedArray<Thingy>, ) -> Thingy
Interns a variable slot after indirect substitution.
pub fn create_virtual_slot(&self, name: &QName) -> Thingy
Sourcepub fn create_virtual_slot_after_substitution(
&self,
origin: &Thingy,
indirect_type_params: &SharedArray<Thingy>,
indirect_substitute_types: &SharedArray<Thingy>,
) -> Thingy
pub fn create_virtual_slot_after_substitution( &self, origin: &Thingy, indirect_type_params: &SharedArray<Thingy>, indirect_substitute_types: &SharedArray<Thingy>, ) -> Thingy
Interns a virtual slot after indirect substitution.
pub fn create_method_slot(&self, name: &QName, signature: &Thingy) -> Thingy
Sourcepub fn create_method_slot_after_substitution(
&self,
origin: &Thingy,
indirect_type_params: &SharedArray<Thingy>,
indirect_substitute_types: &SharedArray<Thingy>,
) -> Thingy
pub fn create_method_slot_after_substitution( &self, origin: &Thingy, indirect_type_params: &SharedArray<Thingy>, indirect_substitute_types: &SharedArray<Thingy>, ) -> Thingy
Interns a method slot after indirect substitution.
pub fn create_scope(&self) -> Thingy
pub fn create_with_scope(&self, object: &Thingy) -> Thingy
pub fn create_filter_scope(&self, base: &Thingy) -> Thingy
pub fn create_activation(&self, of_method: &Thingy) -> Thingy
pub fn create_class_scope(&self, class: &Thingy) -> Thingy
pub fn create_enum_scope(&self, class: &Thingy) -> Thingy
pub fn create_interface_scope(&self, itrfc: &Thingy) -> Thingy
pub fn create_package_scope(&self, pckg: &Thingy) -> Thingy
pub fn create_value(&self, static_type: &Thingy) -> Thingy
pub fn create_package_property_import( &self, property: &Thingy, location: Option<Location>, ) -> Thingy
pub fn create_package_wildcard_import( &self, package: &Thingy, location: Option<Location>, ) -> Thingy
pub fn create_package_recursive_import( &self, package: &Thingy, location: Option<Location>, ) -> Thingy
pub fn create_undefined_constant(&self, static_type: &Thingy) -> Thingy
pub fn create_null_constant(&self, static_type: &Thingy) -> Thingy
pub fn create_number_constant( &self, value: NumberVariant, static_type: &Thingy, ) -> Thingy
pub fn create_string_constant( &self, value: String, static_type: &Thingy, ) -> Thingy
pub fn create_boolean_constant( &self, value: bool, static_type: &Thingy, ) -> Thingy
pub fn create_this_object(&self, static_type: &Thingy) -> Thingy
pub fn create_type_as_reference_value( &self, referenced_type: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_namespace_as_reference_value( &self, referenced_ns: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_xml_reference_value( &self, base: &Thingy, qualifier: Option<Thingy>, key: &Thingy, ) -> Thingy
pub fn create_dynamic_reference_value( &self, base: &Thingy, qualifier: Option<Thingy>, key: &Thingy, ) -> Thingy
pub fn create_array_element_reference_value( &self, base: &Thingy, key: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_vector_element_reference_value( &self, base: &Thingy, key: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_static_reference_value( &self, base: &Thingy, property: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_static_dynamic_reference_value( &self, base: &Thingy, qualifier: Option<Thingy>, key: &Thingy, ) -> Thingy
pub fn create_instance_reference_value( &self, base: &Thingy, property: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_tuple_reference_value( &self, base: &Thingy, index: usize, ) -> Thingy
pub fn create_scope_reference_value( &self, base: &Thingy, property: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_dynamic_scope_reference_value( &self, base: &Thingy, qualifier: Option<Thingy>, key: &Thingy, ) -> Thingy
pub fn create_package_reference_value( &self, base: &Thingy, property: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_conversion_value( &self, base: &Thingy, variant: TypeConversionVariant, opt: bool, target: &Thingy, ) -> Result<Thingy, DeferError>
pub fn create_lambda_object( &self, activation: &Thingy, ) -> Result<Thingy, DeferError>
Auto Trait Implementations§
impl<'a> Freeze for ThingyFactory<'a>
impl<'a> !RefUnwindSafe for ThingyFactory<'a>
impl<'a> !Send for ThingyFactory<'a>
impl<'a> !Sync for ThingyFactory<'a>
impl<'a> Unpin for ThingyFactory<'a>
impl<'a> !UnwindSafe for ThingyFactory<'a>
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.