S or /

SourceClass Id

from egui import Id
class Id:

Methods§

@staticmethod def null() -> Id§
Sourcedef short_debug_format(self, /) -> str§

Short and readable summary

Sourcedef value(self, /) -> int§

The inner value of the Id.

This is a high-entropy hash, or egui.Id.NULL.

def with_int(self, /, child: int) -> Id§
Sourcedef with_salt(self, /, salt: IdSalt) -> Id§

Generate a child Id by salting the parent Id with the given IdSalt.

id.with_salt(IdSalt.new(salt)) is the same as id.with(salt).

def with_str(self, /, child: str) -> Id§