Skip to content

Commit e2def52

Browse files
committed
mention [visit(bounds=".."] attribute
1 parent 4147892 commit e2def52

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fyrox-core/src/visitor/mod.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ impl Debug for Visitor {
399399
/// before the generated body.
400400
/// - `#[visit(post_visit_method = "function_name")]` - name of a function, that will be called
401401
/// after the generated body.
402+
/// - `#[visit(bounds)]` - add type boundary for `Visit` impl, for example
403+
/// `#[visit(bounds = "T: Visit + Default")]`.
402404
///
403405
/// ### Field Attributes
404406
///

0 commit comments

Comments
 (0)