Junior question: &R#Self Move or Rust lang?


I’m learning rust to learn move.
In some sample code, there is a use of

Is it a Rust or a Move language syntax?
Any keyword that can help me to google more about it?

Thank you

Example code that I found:

public borrow_owner_capability(): &R#Self.Owner {
    let sender: address;
    let owner_capability_ref: &mut R#Self.Owner;
    let owner_capability_immut_ref: &R#Self.Owner;

Sorry for the late reply. “R#/V#” is an old move ir syntax and it has been recently removed. (You can just write “Self.Owner” instead.

This is not to be confused with Rust – notice the extension of the file is “mvir” (“move ir”).

1 Like