* wip Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> closer Signed-off-by: Jess Frazelle <github@jessfraz.com> fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * closer Signed-off-by: Jess Frazelle <github@jessfraz.com> * closer Signed-off-by: Jess Frazelle <github@jessfraz.com> * compiles Signed-off-by: Jess Frazelle <github@jessfraz.com> * connection Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix wasm Signed-off-by: Jess Frazelle <github@jessfraz.com> * timeout Signed-off-by: Jess Frazelle <github@jessfraz.com> * remove the drop Signed-off-by: Jess Frazelle <github@jessfraz.com> * drop handle Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
95 lines
2.5 KiB
Plaintext
95 lines
2.5 KiB
Plaintext
#[allow(non_camel_case_types, missing_docs)]
|
|
#[doc = "Std lib function: lineTo"]
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, schemars :: JsonSchema, ts_rs :: TS)]
|
|
#[ts(export)]
|
|
pub(crate) struct LineTo {}
|
|
|
|
#[allow(non_upper_case_globals, missing_docs)]
|
|
#[doc = "Std lib function: lineTo"]
|
|
pub(crate) const LineTo: LineTo = LineTo {};
|
|
fn boxed_line_to(
|
|
args: crate::std::Args,
|
|
) -> std::pin::Pin<
|
|
Box<
|
|
dyn std::future::Future<
|
|
Output = anyhow::Result<crate::executor::MemoryItem, crate::errors::KclError>,
|
|
>,
|
|
>,
|
|
> {
|
|
Box::pin(line_to(args))
|
|
}
|
|
|
|
impl crate::docs::StdLibFn for LineTo {
|
|
fn name(&self) -> String {
|
|
"lineTo".to_string()
|
|
}
|
|
|
|
fn summary(&self) -> String {
|
|
"".to_string()
|
|
}
|
|
|
|
fn description(&self) -> String {
|
|
"".to_string()
|
|
}
|
|
|
|
fn tags(&self) -> Vec<String> {
|
|
vec![]
|
|
}
|
|
|
|
fn args(&self) -> Vec<crate::docs::StdLibFnArg> {
|
|
let mut settings = schemars::gen::SchemaSettings::openapi3();
|
|
settings.inline_subschemas = true;
|
|
let mut generator = schemars::gen::SchemaGenerator::new(settings);
|
|
vec![
|
|
crate::docs::StdLibFnArg {
|
|
name: "data".to_string(),
|
|
type_: "LineToData".to_string(),
|
|
schema: LineToData::json_schema(&mut generator),
|
|
required: true,
|
|
},
|
|
crate::docs::StdLibFnArg {
|
|
name: "sketch_group".to_string(),
|
|
type_: "SketchGroup".to_string(),
|
|
schema: SketchGroup::json_schema(&mut generator),
|
|
required: true,
|
|
},
|
|
]
|
|
}
|
|
|
|
fn return_value(&self) -> Option<crate::docs::StdLibFnArg> {
|
|
let mut settings = schemars::gen::SchemaSettings::openapi3();
|
|
settings.inline_subschemas = true;
|
|
let mut generator = schemars::gen::SchemaGenerator::new(settings);
|
|
Some(crate::docs::StdLibFnArg {
|
|
name: "".to_string(),
|
|
type_: "SketchGroup".to_string(),
|
|
schema: SketchGroup::json_schema(&mut generator),
|
|
required: true,
|
|
})
|
|
}
|
|
|
|
fn unpublished(&self) -> bool {
|
|
false
|
|
}
|
|
|
|
fn deprecated(&self) -> bool {
|
|
false
|
|
}
|
|
|
|
fn std_lib_fn(&self) -> crate::std::StdFn {
|
|
boxed_line_to
|
|
}
|
|
|
|
fn clone_box(&self) -> Box<dyn crate::docs::StdLibFn> {
|
|
Box::new(self.clone())
|
|
}
|
|
}
|
|
|
|
fn inner_line_to(
|
|
data: LineToData,
|
|
sketch_group: SketchGroup,
|
|
args: &Args,
|
|
) -> Result<SketchGroup, KclError> {
|
|
Ok(())
|
|
}
|