turbofish

Hello, you have come here looking for the meaning of the word turbofish. In DICTIOUS you will not only get to know all the dictionary meanings for the word turbofish, but we will also tell you about its etymology, its characteristics and you will know how to say turbofish in singular and plural. Everything you need to know about the word turbofish you have here. The definition of the word turbofish will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofturbofish, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

English

Etymology

From turbo- +‎ fish; coined by Anna Harren in 2015,[1][2][3] originally in jest, later adopted by official documentation.

Pronunciation

Noun

turbofish (plural turbofishes)

  1. (programming) A syntactic element in Rust, ::<>, with arguments between < and >, that specifies the generic arguments of a function in an expression.
    • 2017 November 21, Jim Blandy, Jason Orendorff, Programming Rust: Fast, Safe Systems Development, "O'Reilly Media, Inc.", →ISBN:
      For static method calls, you can supply the type parameter explicitly using the turbofish ::<> notation:
    • 2019 January 31, Rahul Sharma, Vesa Kaihlavirta, Mastering Rust, Packt Publishing Ltd, →ISBN, page 122:
      The turbofish operator in generic functions appears right after the function name and before the parenthesis.
    • 2021 June 30, Herbert Wolverson, Hands-on Rust, Pragmatic Bookshelf, →ISBN:
      You can add a turbofish to a function call with the syntax function::<Type>(). For example, collect::<Vec<MyType>>().

References

Further reading

  • “Paths in expressions”, in The Rust Reference, 2019