diff --git a/Contents/Resources/impl-generator-bin b/Contents/Resources/impl-generator-bin index 0761629..6ebafb1 100755 Binary files a/Contents/Resources/impl-generator-bin and b/Contents/Resources/impl-generator-bin differ diff --git a/Contents/Scripts/Generate Implementation.scpt b/Contents/Scripts/Generate Implementation.scpt index fc3d0f9..38fd1c6 100644 Binary files a/Contents/Scripts/Generate Implementation.scpt and b/Contents/Scripts/Generate Implementation.scpt differ diff --git a/impl-generator/src/main.rs b/impl-generator/src/main.rs index 14d4dd6..a1b0487 100644 --- a/impl-generator/src/main.rs +++ b/impl-generator/src/main.rs @@ -302,6 +302,53 @@ fn get_components(trait_name: &str) -> Option>> { }, ], + "ExactLenIterator" => vec![ + Function { + name: "len", + input: "&self", + output: Some("usize"), + params: None, + }, + ], + + "FromIterator" => vec![ + Function { + name: "from_iter", + input: "iterator: T", + output: Some("SELF"), + params: Some("T: IntoIterator"), + }, + ], + + "DoubleEndedIterator" => vec![ + Function { + name: "next_back", + input: "&mut self", + output: Some("Option"), + params: None, + }, + ], + + "IntoIterator" => vec![ + AssocType("Item"), + AssocType("IntoIter"), + Function { + name: "into_iter", + input: "self", + output: Some("Self::IntoIter"), + params: None, + } + ], + + "Extend" => vec![ + Function { + name: "extend", + input: "&mut self, iterable: T", + output: None, + params: Some("T: IntoIterator"), + } + ], + // -- std::ops -- "Add" => maths("add"),