API reference
python:astx:astx.borrows.BorrowRetarget.__init__
method __init__
__init__(target: Identifier, source: Expr, access: BorrowAccess, *, loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/borrows.py:101
Initialize a borrow retargeting statement.
Parameters
-
target — Existing borrow binding.; Type: Identifier
-
source — Replacement place.; Type: Expr
-
access — Access requested for the replacement.; Type: BorrowAccess
-
loc — Source coordinates.; Type: SourceLocation
Returns
Type: None