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.

struct libtmux-rs latest

OneRelation

A value-only handle for a to-one relation from From to To.

Source and package
Qualified name
libtmux::query::fields::OneRelation
Module
query.fields
Package
libtmux
Source
crates/libtmux/src/query/fields.rs
struct query.fields.OneRelation

Description#

Relation expressions inspect only the already-loaded optional value on a candidate and never perform I/O.

Examples#

use libtmux::query::OneRelation;
use libtmux::query::__private;
struct Parent;
struct Owner;
let relation: OneRelation<Parent, Owner> =
__private::one_relation("parent", "owner");
assert!(format!("{relation:?}").contains("owner"));
Type parameters

Members1#

  • is method Match when the related candidate exists and satisfies expression.
Esc

Type to search.

Reference previewOpen reference