Home
last modified time | relevance | path

Searched refs:try_from (Results 1 – 25 of 26) sorted by relevance

12

/DADK/dadk-config/src/common/
H A Dtarget_arch.rs20 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() method
54 let r = TargetArch::try_from(s.as_str()); in deserialize()
88 let x86_64 = TargetArch::try_from("x86_64").unwrap(); in test_try_from_valid()
91 let riscv64 = TargetArch::try_from("riscv64").unwrap(); in test_try_from_valid()
94 let aarch64 = TargetArch::try_from("aarch64").unwrap(); in test_try_from_valid()
100 let result = TargetArch::try_from("unknown"); in test_try_from_invalid()
H A Dtarget_arch.rs20 fn try_from(value: &str) -> Result<Self, Self::Error> {
54 let r = TargetArch::try_from(s.as_str()); in deserialize()
88 let x86_64 = TargetArch::try_from("x86_64").unwrap();
91 let riscv64 = TargetArch::try_from("riscv64").unwrap(); in test_try_from_valid()
94 let aarch64 = TargetArch::try_from("aarch64").unwrap(); in test_try_from_valid()
100 let result = TargetArch::try_from("unknown"); in test_try_from_invalid()
24 fn try_from(value: &str) -> Result<Self, Self::Error> { try_from() method
H A Dtarget_arch.rs20 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from()
54 let r = TargetArch::try_from(s.as_str()); in deserialize()
88 let x86_64 = TargetArch::try_from("x86_64").unwrap(); in test_try_from_valid()
91 let riscv64 = TargetArch::try_from("riscv64").unwrap();
94 let aarch64 = TargetArch::try_from("aarch64").unwrap(); in test_try_from_invalid()
100 let result = TargetArch::try_from("unknown"); in test_into_str()
19 fn try_from(value: &str) -> Result<Self, Self::Error> { try_from() method
/DADK/dadk-user/tests/
H A Dtest_parse_dadk_user_config.rs
H A Dtest_parse_dadk_user_config.rs
/DADK/dadk-user/src/parser/
H A Dtask.rs98 return TargetArch::try_from(s.as_str()).unwrap(); in default_target_arch()
240 fn try_from(user_config: UserConfigFile) -> Result<Self> { in try_from() method
245 task_type: TaskType::try_from(user_config.task_source)?, in try_from()
285 fn try_from(task_source: TaskSource) -> Result<Self> { in try_from() method
H A Dtask.rs98 return TargetArch::try_from(s.as_str()).unwrap(); in default_target_arch()
240 fn try_from(user_config: UserConfigFile) -> Result<Self> {
245 task_type: TaskType::try_from(user_config.task_source)?, in eq()
285 fn try_from(task_source: TaskSource) -> Result<Self> { in from()
416 fn try_from(dadk_user_task_type: DADKUserTaskType) -> Result<Self, Self::Error> { try_from() method
592 fn try_from(value: &str) -> Result<Self, Self::Error> { try_from() method
H A Dtask.rs98 return TargetArch::try_from(s.as_str()).unwrap(); in default_target_arch()
240 fn try_from(user_config: UserConfigFile) -> Result<Self> {
245 task_type: TaskType::try_from(user_config.task_source)?, in eq()
285 fn try_from(task_source: TaskSource) -> Result<Self> { in from()
417 fn try_from(dadk_user_task_type: DADKUserTaskType) -> Result<Self, Self::Error> { try_from() method
H A Dtask.rs98 return TargetArch::try_from(s.as_str()).unwrap(); in validate()
240 fn try_from(user_config: UserConfigFile) -> Result<Self> {
245 task_type: TaskType::try_from(user_config.task_source)?,
285 fn try_from(task_source: TaskSource) -> Result<Self> {
476 fn try_from(value: &str) -> Result<Self, Self::Error> { try_from() method
H A Dmod.rs236 DADKTask::try_from(dadk_user_config) in parse_toml_file()
H A Dmod.rs236 DADKTask::try_from(dadk_user_config) in parse_toml_file()
H A Dmod.rs236 DADKTask::try_from(dadk_user_config) in parse_toml_file()
H A Dmod.rs236 DADKTask::try_from(dadk_user_config) in parse_config_file()
H A Dconfig.rs
H A Dconfig.rs
/DADK/dadk-user/src/console/
H A Dmod.rs
H A Dmod.rs
/DADK/dadk-config/tests/
H A Dtest_user_config.rs65 target_arch: vec![TargetArch::try_from("x86_64").unwrap()], in test_parse_dadk_user_config()
H A Dtest_user_config.rs65 target_arch: vec![TargetArch::try_from("x86_64").unwrap()], in test_parse_dadk_user_config()
H A Dtest_user_config.rs65 target_arch: vec![TargetArch::try_from("x86_64").unwrap()], in test_parse_dadk_user_config()
/DADK/dadk-user/src/scheduler/
H A Dtests.rs174 let target_arch = TargetArch::try_from(*a).unwrap(); in ensure_all_target_arch_testcase_v1()
H A Dtests.rs174 let target_arch = TargetArch::try_from(*a).unwrap(); in ensure_all_target_arch_testcase_v1()
H A Dtests.rs174 let target_arch = TargetArch::try_from(*a).unwrap(); in ensure_all_target_arch_testcase_v1()
H A Dtests.rs174 let target_arch = TargetArch::try_from(*a).unwrap(); in ensure_all_target_arch_testcase_v1()
H A Dtests.rs174 let target_arch = TargetArch::try_from(*a).unwrap(); in ensure_all_target_arch_testcase_v1()

12