Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-rs latest

many_relation

Construct a to-many relation handle for generated code.

Source and package
Qualified name
libtmux::query::private::many_relation
Module
query.private
Package
libtmux
Source
crates/libtmux/src/query/private.rs
#[must_use] pub const fn many_relation<From, To>( target: &'static str, field: &'static str, ) -> ManyRelation<From, To>

Examples#

use libtmux::query::ManyRelation;
use libtmux::query::__private;
struct Parent;
struct Child;
let field: ManyRelation<Parent, Child> =
__private::many_relation("parent", "children");
assert!(format!("{field:?}").contains("children"));
Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference