[{"data":1,"prerenderedAt":695},["ShallowReactive",2],{"docs:\u002Fauthoring\u002Fbusiness-logic":3,"docs-navigation:":150,"docs-locale-navigation":612,"i-tabler:chevron-down":688,"inrux-code-sfc:rs:use crate::domain::workspace_name_is_valid;\n\nfn validate(state: &mut State, _: &Context\u003CState>) {\n    state.message = if workspace_name_is_valid(&state.name) {\n        \"Name is valid\".into()\n    } else {\n        \"Use a name between 1 and 80 characters\".into()\n    };\n}\n":692,"inrux-code-sfc:rs:mod domain;\n\u002F\u002F Keep the generated include and mount code from the scaffold below this.\n":693,"inrux-code-sfc:rs:\u002F\u002F\u002F Apply a domain rule independently of any GUI component.\npub fn workspace_name_is_valid(name: &str) -> bool {\n    !name.trim().is_empty() && name.chars().count() \u003C= 80\n}\n":694},{"id":4,"title":5,"body":6,"description":139,"docs":140,"extension":141,"icon":140,"meta":142,"navigation":143,"path":145,"redirect":140,"seo":146,"space":147,"stem":148,"__hash__":149},"docs\u002F3.authoring\u002F07.business-logic.md","Separating business logic",{"type":7,"value":8,"toc":134},"minimark",[9,18,79,84,87,98,105,108,115,118,122,131],[10,11,12,13,17],"p",{},"A single-file component does not mean a single-file application. Keep the UI state and wiring that help you understand one component in ",[14,15,16],"code",{},".iru",". Move business rules and infrastructure into Rust modules or libraries.",[19,20,21,34],"table",{},[22,23,24],"thead",{},[25,26,27,31],"tr",{},[28,29,30],"th",{},"Location",[28,32,33],{},"Example responsibilities",[35,36,37,48,58,69],"tbody",{},[25,38,39,45],{},[40,41,42,44],"td",{},[14,43,16],{}," component",[40,46,47],{},"Current input, expanded state, local error message, event wiring",[25,49,50,55],{},[40,51,52],{},[14,53,54],{},"src\u002Fcomposables\u002F",[40,56,57],{},"Reusable Signal\u002FComputed construction and UI logic",[25,59,60,66],{},[40,61,62,65],{},[14,63,64],{},"src\u002Fdomain\u002F"," or a Cargo library",[40,67,68],{},"Validation rules, calculations and domain types",[25,70,71,76],{},[40,72,73],{},[14,74,75],{},"src\u002Fservices\u002F",[40,77,78],{},"Persistence, network access and other external work",[80,81,83],"h2",{"id":82},"import-an-ordinary-rust-module","Import an ordinary Rust module",[10,85,86],{},"Declare a module from the application entry point:",[88,89,96],"pre",{"className":90,"code":92,"filename":93,"language":94,"meta":95},[91],"language-rust","mod domain;\n\u002F\u002F Keep the generated include and mount code from the scaffold below this.\n","src\u002Fmain.rs","rust","",[14,97,92],{"__ignoreMap":95},[88,99,103],{"className":100,"code":101,"filename":102,"language":94,"meta":95},[91],"\u002F\u002F\u002F Apply a domain rule independently of any GUI component.\npub fn workspace_name_is_valid(name: &str) -> bool {\n    !name.trim().is_empty() && name.chars().count() \u003C= 80\n}\n","src\u002Fdomain.rs",[14,104,101],{"__ignoreMap":95},[10,106,107],{},"Then import and call it from your component:",[88,109,113],{"className":110,"code":111,"filename":112,"language":94,"meta":95},[91],"use crate::domain::workspace_name_is_valid;\n\nfn validate(state: &mut State, _: &Context\u003CState>) {\n    state.message = if workspace_name_is_valid(&state.name) {\n        \"Name is valid\".into()\n    } else {\n        \"Use a name between 1 and 80 characters\".into()\n    };\n}\n","App.iru: Rust block",[14,114,111],{"__ignoreMap":95},[10,116,117],{},"The component owns the message and input fields. The domain function knows nothing about components, events or GUI engines. You can test and reuse it from a command-line tool or another application.",[80,119,121],{"id":120},"keep-handlers-short-when-work-is-slow","Keep handlers short when work is slow",[10,123,124,125,130],{},"Do not perform a network request or long disk operation inside a click handler. Handlers run on the application coordinator. Use ",[126,127,129],"a",{"href":128},"\u002Fauthoring\u002Fbackground-tasks","background tasks"," with owned inputs and apply the result to UI state when it returns.",[10,132,133],{},"Splitting files should follow ownership and reuse. Keep a small local handler beside its binding when that makes the component easier to read; extract it when it obscures the layout or belongs to a broader service.",{"title":95,"searchDepth":135,"depth":135,"links":136},2,[137,138],{"id":82,"depth":135,"text":83},{"id":120,"depth":135,"text":121},"Keep component interactions nearby and domain behavior reusable in Rust modules.",null,"md",{},{"icon":144},"tabler:briefcase","\u002Fauthoring\u002Fbusiness-logic",{"title":5,"description":139},false,"3.authoring\u002F07.business-logic","2wF5Y1RIi12g0p7toJMV2GCq8OCf42FwJnQL2GXjcE4",[151,206,238,306,346,565],{"title":152,"navigation":153,"description":140,"space":147,"icon":140,"docs":140,"redirect":140,"path":154,"stem":155,"children":156,"page":147},"Getting started",true,"\u002Fgetting-started","1.getting-started",[157,164,171,178,185,192,199],{"title":158,"path":159,"stem":160,"navigation":161,"description":163,"space":147,"icon":162,"docs":140,"redirect":140},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F01.introduction",{"icon":162},"tabler:book-2","Build native Rust interfaces with reusable .iru components.",{"title":165,"path":166,"stem":167,"navigation":168,"description":170,"space":147,"icon":169,"docs":140,"redirect":140},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F02.installation",{"icon":169},"tabler:download","Install the native build tools, clone Inrux and run your first application.",{"title":172,"path":173,"stem":174,"navigation":175,"description":177,"space":147,"icon":176,"docs":140,"redirect":140},"Your first application","\u002Fgetting-started\u002Ffirst-app","1.getting-started\u002F03.first-app",{"icon":176},"tabler:rocket","Create a project, mount App.iru and connect a button to local state.",{"title":179,"path":180,"stem":181,"navigation":182,"description":184,"space":147,"icon":183,"docs":140,"redirect":140},"Project structure","\u002Fgetting-started\u002Fproject-structure","1.getting-started\u002F04.project-structure",{"icon":183},"tabler:folders","Find the framework crates, native examples, editor tools and application folders.",{"title":186,"path":187,"stem":188,"navigation":189,"description":191,"space":147,"icon":190,"docs":140,"redirect":140},"Playgrounds","\u002Fgetting-started\u002Fplaygrounds","1.getting-started\u002F05.playgrounds",{"icon":190},"tabler:device-desktop","Run the same component catalogue with egui, Masonry or GPUI.",{"title":193,"path":194,"stem":195,"navigation":196,"description":198,"space":147,"icon":197,"docs":140,"redirect":140},"VS Code","\u002Fgetting-started\u002Fvscode","1.getting-started\u002F06.vscode",{"icon":197},"tabler:code","Set up .iru icons, completion, formatting, navigation and Rust support.",{"title":200,"path":201,"stem":202,"navigation":203,"description":205,"space":147,"icon":204,"docs":140,"redirect":140},"Alpha status","\u002Fgetting-started\u002Fstatus","1.getting-started\u002F07.status",{"icon":204},"tabler:flask","Check what works today and which features still need implementation or platform testing.",{"title":207,"navigation":153,"description":140,"space":147,"icon":140,"docs":140,"redirect":140,"path":208,"stem":209,"children":210,"page":147},"Architecture","\u002Finternals","2.internals",[211,217,224,231],{"title":207,"path":212,"stem":213,"navigation":214,"description":216,"space":147,"icon":215,"docs":140,"redirect":140},"\u002Finternals\u002Farchitecture","2.internals\u002F01.architecture",{"icon":215},"tabler:sitemap","Follow compilation, state ownership, threads and the native adapter boundary.",{"title":218,"path":219,"stem":220,"navigation":221,"description":223,"space":147,"icon":222,"docs":140,"redirect":140},"Adapter services","\u002Finternals\u002Fadapter-services","2.internals\u002F02.adapter-services",{"icon":222},"tabler:plug","Understand provider contracts, capabilities, fallback selection and component prerequisites.",{"title":225,"path":226,"stem":227,"navigation":228,"description":230,"space":147,"icon":229,"docs":140,"redirect":140},"Text rendering","\u002Finternals\u002Ftext-rendering","2.internals\u002F03.text-rendering",{"icon":229},"tabler:typography","Learn how shared shaping and glyph rasterization reduce differences between engines.",{"title":232,"path":233,"stem":234,"navigation":235,"description":237,"space":147,"icon":236,"docs":140,"redirect":140},"Headless components","\u002Finternals\u002Fheadless-components","2.internals\u002F04.headless-components",{"icon":236},"tabler:components","Separate interaction behavior from application appearance and themes.",{"title":239,"navigation":153,"description":140,"space":147,"icon":140,"docs":140,"redirect":140,"path":240,"stem":241,"children":242,"page":147},"Writing components","\u002Fauthoring","3.authoring",[243,250,256,263,270,277,284,286,293,299],{"title":244,"path":245,"stem":246,"navigation":247,"description":249,"space":147,"icon":248,"docs":140,"redirect":140},"The .iru format","\u002Fauthoring\u002Firu-format","3.authoring\u002F01.iru-format",{"icon":248},"tabler:file-code","Learn what goes in a component file, why Inrux uses SFCs and when to move code out.",{"title":251,"path":252,"stem":253,"navigation":254,"description":255,"space":147,"icon":236,"docs":140,"redirect":140},"Component contract","\u002Fauthoring\u002Fcomponent-contract","3.authoring\u002F02.component-contract",{"icon":236},"Write imports, props, events, models, keyed children and component state.",{"title":257,"path":258,"stem":259,"navigation":260,"description":262,"space":147,"icon":261,"docs":140,"redirect":140},"Props, events and models","\u002Fauthoring\u002Fprops-events-models","3.authoring\u002F03.props-events-models",{"icon":261},"tabler:arrows-exchange","Pass values down, send typed events up and bind controlled values.",{"title":264,"path":265,"stem":266,"navigation":267,"description":269,"space":147,"icon":268,"docs":140,"redirect":140},"State and computed values","\u002Fauthoring\u002Fstate-and-computed","3.authoring\u002F04.state-and-computed",{"icon":268},"tabler:bolt","Update local fields, share reactive handles and derive cached values.",{"title":271,"path":272,"stem":273,"navigation":274,"description":276,"space":147,"icon":275,"docs":140,"redirect":140},"Conditions, lists and dynamic components","\u002Fauthoring\u002Fcontrol-flow","3.authoring\u002F05.control-flow",{"icon":275},"tabler:git-branch","Render branches, preserve list identity and select imported components.",{"title":278,"path":279,"stem":280,"navigation":281,"description":283,"space":147,"icon":282,"docs":140,"redirect":140},"Children and layouts","\u002Fauthoring\u002Fchildren-and-layouts","3.authoring\u002F06.children-and-layouts",{"icon":282},"tabler:layout","Pass default child content through reusable application shells.",{"title":5,"path":145,"stem":148,"navigation":285,"description":139,"space":147,"icon":144,"docs":140,"redirect":140},{"icon":144},{"title":287,"path":288,"stem":289,"navigation":290,"description":292,"space":147,"icon":291,"docs":140,"redirect":140},"Lifecycle and refs","\u002Fauthoring\u002Flifecycle-and-refs","3.authoring\u002F08.lifecycle-and-refs",{"icon":291},"tabler:refresh","Understand setup, mount identity, cleanup and the limits of native refs.",{"title":294,"path":128,"stem":295,"navigation":296,"description":298,"space":147,"icon":297,"docs":140,"redirect":140},"Background tasks","3.authoring\u002F09.background-tasks",{"icon":297},"tabler:cpu","Run slow work outside the coordinator and return typed results to component state.",{"title":300,"path":301,"stem":302,"navigation":303,"description":305,"space":147,"icon":304,"docs":140,"redirect":140},"Provide and inject","\u002Fauthoring\u002Fdependency-injection","3.authoring\u002F10.dependency-injection",{"icon":304},"tabler:plug-connected","Share typed services through a component subtree without prop drilling.",{"title":307,"navigation":153,"description":140,"space":147,"icon":140,"docs":140,"redirect":140,"path":308,"stem":309,"children":310,"page":147},"Styling","\u002Fstyling","4.styling",[311,318,325,332,339],{"title":312,"path":313,"stem":314,"navigation":315,"description":317,"space":147,"icon":316,"docs":140,"redirect":140},"Styling basics","\u002Fstyling\u002Foverview","4.styling\u002F01.overview",{"icon":316},"tabler:palette","Style headless components with CSS-like rules or Rust values.",{"title":319,"path":320,"stem":321,"navigation":322,"description":324,"space":147,"icon":323,"docs":140,"redirect":140},"CSS reference","\u002Fstyling\u002Fcss-reference","4.styling\u002F02.css-reference",{"icon":323},"tabler:file-type-css","Use the supported selectors, properties, cascade and compiled style rules.",{"title":326,"path":327,"stem":328,"navigation":329,"description":331,"space":147,"icon":330,"docs":140,"redirect":140},"Parts and states","\u002Fstyling\u002Fparts-and-states","4.styling\u002F03.parts-and-states",{"icon":330},"tabler:puzzle","Style exposed control parts and interaction states without native widget handles.",{"title":333,"path":334,"stem":335,"navigation":336,"description":338,"space":147,"icon":337,"docs":140,"redirect":140},"Color values","\u002Fstyling\u002Fcolors","4.styling\u002F04.colors",{"icon":337},"tabler:color-swatch","Write literal CSS colors and understand alpha and color-space limits.",{"title":340,"path":341,"stem":342,"navigation":343,"description":345,"space":147,"icon":344,"docs":140,"redirect":140},"Themes and responsiveness","\u002Fstyling\u002Fthemes-and-responsiveness","4.styling\u002F05.themes-and-responsiveness",{"icon":344},"tabler:sun-moon","Compile complete theme sheets and respond to logical viewport dimensions.",{"title":347,"navigation":153,"description":140,"space":147,"icon":140,"docs":140,"redirect":140,"path":348,"stem":349,"children":350,"page":147},"Components","\u002Fcomponents","5.components",[351,358,365,372,379,386,393,400,407,414,421,428,435,442,449,456,463,470,477,483,490,497,504,511,517,524,531,538,545,551,558],{"title":352,"path":353,"stem":354,"navigation":355,"description":357,"space":147,"icon":356,"docs":140,"redirect":140},"AspectRatio","\u002Fcomponents\u002Faspect-ratio","5.components\u002Faspect-ratio",{"icon":356},"tabler:aspect-ratio","Size a container around a positive width-to-height ratio.",{"title":359,"path":360,"stem":361,"navigation":362,"description":364,"space":147,"icon":363,"docs":140,"redirect":140},"Badge","\u002Fcomponents\u002Fbadge","5.components\u002Fbadge",{"icon":363},"tabler:badge","Display a short status label.",{"title":366,"path":367,"stem":368,"navigation":369,"description":371,"space":147,"icon":370,"docs":140,"redirect":140},"Box","\u002Fcomponents\u002Fbox","5.components\u002Fbox",{"icon":370},"tabler:box","Create a physical vertical container.",{"title":373,"path":374,"stem":375,"navigation":376,"description":378,"space":147,"icon":377,"docs":140,"redirect":140},"Button","\u002Fcomponents\u002Fbutton","5.components\u002Fbutton",{"icon":377},"tabler:hand-click","Trigger an action from a labeled control.",{"title":380,"path":381,"stem":382,"navigation":383,"description":385,"space":147,"icon":384,"docs":140,"redirect":140},"Card","\u002Fcomponents\u002Fcard","5.components\u002Fcard",{"icon":384},"tabler:id","Group related child content in a surface.",{"title":387,"path":388,"stem":389,"navigation":390,"description":392,"space":147,"icon":391,"docs":140,"redirect":140},"Center","\u002Fcomponents\u002Fcenter","5.components\u002Fcenter",{"icon":391},"tabler:align-box-center-middle","Center a group within available free space.",{"title":394,"path":395,"stem":396,"navigation":397,"description":399,"space":147,"icon":398,"docs":140,"redirect":140},"Checkbox","\u002Fcomponents\u002Fcheckbox","5.components\u002Fcheckbox",{"icon":398},"tabler:checkbox","Control a labeled boolean choice.",{"title":401,"path":402,"stem":403,"navigation":404,"description":406,"space":147,"icon":405,"docs":140,"redirect":140},"Column","\u002Fcomponents\u002Fcolumn","5.components\u002Fcolumn",{"icon":405},"tabler:layout-list","Arrange child nodes vertically.",{"title":408,"path":409,"stem":410,"navigation":411,"description":413,"space":147,"icon":412,"docs":140,"redirect":140},"Container","\u002Fcomponents\u002Fcontainer","5.components\u002Fcontainer",{"icon":412},"tabler:container","Constrain and center a reading or application column.",{"title":415,"path":416,"stem":417,"navigation":418,"description":420,"space":147,"icon":419,"docs":140,"redirect":140},"Content reference","\u002Fcomponents\u002Fcontent-reference","5.components\u002Fcontent-reference",{"icon":419},"tabler:file-description","Compose cards, badges and separators with shared component descriptions.",{"title":422,"path":423,"stem":424,"navigation":425,"description":427,"space":147,"icon":426,"docs":140,"redirect":140},"Dialog","\u002Fcomponents\u002Fdialog","5.components\u002Fdialog",{"icon":426},"tabler:message","Show an egui-only modal prototype.",{"title":429,"path":430,"stem":431,"navigation":432,"description":434,"space":147,"icon":433,"docs":140,"redirect":140},"Flex","\u002Fcomponents\u002Fflex","5.components\u002Fflex",{"icon":433},"tabler:layout-distribute-horizontal","Choose a flexible layout direction and wrapping policy.",{"title":436,"path":437,"stem":438,"navigation":439,"description":441,"space":147,"icon":440,"docs":140,"redirect":140},"Grid","\u002Fcomponents\u002Fgrid","5.components\u002Fgrid",{"icon":440},"tabler:layout-grid","Arrange direct children in equal-width columns.",{"title":443,"path":444,"stem":445,"navigation":446,"description":448,"space":147,"icon":447,"docs":140,"redirect":140},"Heartbeat","\u002Fcomponents\u002Fheartbeat","5.components\u002Fheartbeat",{"icon":447},"tabler:heartbeat","Inspect an egui-only UI-thread animation diagnostic.",{"title":450,"path":451,"stem":452,"navigation":453,"description":455,"space":147,"icon":454,"docs":140,"redirect":140},"Input","\u002Fcomponents\u002Finput","5.components\u002Finput",{"icon":454},"tabler:forms","Edit a controlled single-line string.",{"title":457,"path":458,"stem":459,"navigation":460,"description":462,"space":147,"icon":461,"docs":140,"redirect":140},"Layout reference","\u002Fcomponents\u002Flayout-reference","5.components\u002Flayout-reference",{"icon":461},"tabler:layout-dashboard","Understand sizing, centering, spacing, flex, grid and aspect-ratio behavior.",{"title":464,"path":465,"stem":466,"navigation":467,"description":469,"space":147,"icon":468,"docs":140,"redirect":140},"Markdown","\u002Fcomponents\u002Fmarkdown","5.components\u002Fmarkdown",{"icon":468},"tabler:markdown","Render a subset of CommonMark through existing native components.",{"title":471,"path":472,"stem":473,"navigation":474,"description":476,"space":147,"icon":475,"docs":140,"redirect":140},"Meter","\u002Fcomponents\u002Fmeter","5.components\u002Fmeter",{"icon":475},"tabler:gauge","Show a finite measurement within explicit bounds.",{"title":478,"path":479,"stem":480,"navigation":481,"description":482,"space":147,"icon":236,"docs":140,"redirect":140},"Component catalogue","\u002Fcomponents\u002Foverview","5.components\u002Foverview",{"icon":236},"Choose a portable control or layout primitive and check its current API.",{"title":484,"path":485,"stem":486,"navigation":487,"description":489,"space":147,"icon":488,"docs":140,"redirect":140},"Progress","\u002Fcomponents\u002Fprogress","5.components\u002Fprogress",{"icon":488},"tabler:progress","Show a finite amount of completed work.",{"title":491,"path":492,"stem":493,"navigation":494,"description":496,"space":147,"icon":495,"docs":140,"redirect":140},"Boolean and range reference","\u002Fcomponents\u002Frange-reference","5.components\u002Frange-reference",{"icon":495},"tabler:adjustments-horizontal","Use controlled switches and validated progress and measurement ranges.",{"title":498,"path":499,"stem":500,"navigation":501,"description":503,"space":147,"icon":502,"docs":140,"redirect":140},"Row","\u002Fcomponents\u002Frow","5.components\u002Frow",{"icon":502},"tabler:columns","Arrange child nodes horizontally.",{"title":505,"path":506,"stem":507,"navigation":508,"description":510,"space":147,"icon":509,"docs":140,"redirect":140},"ScrollArea","\u002Fcomponents\u002Fscroll-area","5.components\u002Fscroll-area",{"icon":509},"tabler:arrows-vertical","Clip and scroll bounded child content.",{"title":512,"path":513,"stem":514,"navigation":515,"description":516,"space":147,"icon":509,"docs":140,"redirect":140},"Scrolling reference","\u002Fcomponents\u002Fscrolling-reference","5.components\u002Fscrolling-reference",{"icon":509},"Use viewport commands, observations, clipping and native input direction.",{"title":518,"path":519,"stem":520,"navigation":521,"description":523,"space":147,"icon":522,"docs":140,"redirect":140},"Select","\u002Fcomponents\u002Fselect","5.components\u002Fselect",{"icon":522},"tabler:selector","Choose a controlled string value from options.",{"title":525,"path":526,"stem":527,"navigation":528,"description":530,"space":147,"icon":529,"docs":140,"redirect":140},"Separator","\u002Fcomponents\u002Fseparator","5.components\u002Fseparator",{"icon":529},"tabler:separator","Draw a decorative divider.",{"title":532,"path":533,"stem":534,"navigation":535,"description":537,"space":147,"icon":536,"docs":140,"redirect":140},"Spacer","\u002Fcomponents\u002Fspacer","5.components\u002Fspacer",{"icon":536},"tabler:space","Consume free main-axis space in a Row or Column.",{"title":539,"path":540,"stem":541,"navigation":542,"description":544,"space":147,"icon":543,"docs":140,"redirect":140},"Switch","\u002Fcomponents\u002Fswitch","5.components\u002Fswitch",{"icon":543},"tabler:toggle-left","Turn a labeled setting on or off.",{"title":546,"path":547,"stem":548,"navigation":549,"description":550,"space":147,"icon":229,"docs":140,"redirect":140},"Text","\u002Fcomponents\u002Ftext","5.components\u002Ftext",{"icon":229},"Display text with shared shaping and glyph pixels.",{"title":552,"path":553,"stem":554,"navigation":555,"description":557,"space":147,"icon":556,"docs":140,"redirect":140},"TextArea","\u002Fcomponents\u002Ftext-area","5.components\u002Ftext-area",{"icon":556},"tabler:align-left","Edit multiline text with wrapping and caret scrolling.",{"title":559,"path":560,"stem":561,"navigation":562,"description":564,"space":147,"icon":563,"docs":140,"redirect":140},"Text editing reference","\u002Fcomponents\u002Ftext-editing-reference","5.components\u002Ftext-editing-reference",{"icon":563},"tabler:text-wrap","Choose single-line Input or multiline TextArea and bind controlled text.",{"title":566,"navigation":153,"description":140,"space":147,"icon":140,"docs":140,"redirect":140,"path":567,"stem":568,"children":569,"page":147},"Tooling and contribution","\u002Ftooling","6.tooling",[570,577,584,591,598,605],{"title":571,"path":572,"stem":573,"navigation":574,"description":576,"space":147,"icon":575,"docs":140,"redirect":140},"CLI","\u002Ftooling\u002Fcli","6.tooling\u002F01.cli",{"icon":575},"tabler:terminal-2","Scaffold, validate and run applications through Cargo.",{"title":578,"path":579,"stem":580,"navigation":581,"description":583,"space":147,"icon":582,"docs":140,"redirect":140},"Contributing","\u002Ftooling\u002Fcontributing","6.tooling\u002F02.contributing",{"icon":582},"tabler:git-pull-request","Keep modules focused, preserve backend boundaries and run the relevant checks.",{"title":585,"path":586,"stem":587,"navigation":588,"description":590,"space":147,"icon":589,"docs":140,"redirect":140},"Working on this website","\u002Ftooling\u002Fdocumentation","6.tooling\u002F03.documentation",{"icon":589},"tabler:notebook","Run, edit, validate and export the Nuxt documentation site.",{"title":592,"path":593,"stem":594,"navigation":595,"description":597,"space":147,"icon":596,"docs":140,"redirect":140},"Troubleshooting","\u002Ftooling\u002Ftroubleshooting","6.tooling\u002F04.troubleshooting",{"icon":596},"tabler:bug","Resolve common compiler, native build and editor setup problems.",{"title":599,"path":600,"stem":601,"navigation":602,"description":604,"space":147,"icon":603,"docs":140,"redirect":140},"Rust API reference","\u002Ftooling\u002Frust-api","6.tooling\u002F05.rust-api",{"icon":603},"tabler:api","Find the public Rust types, build local rustdoc and inspect individual package APIs.",{"title":606,"path":607,"stem":608,"navigation":609,"description":611,"space":147,"icon":610,"docs":140,"redirect":140},"License and notices","\u002Ftooling\u002Flicense","6.tooling\u002F06.license",{"icon":610},"tabler:scale","Understand the license for Inrux code and the notices retained for dependencies and fonts.",[613,622,628,640,647,680],{"title":152,"space":147,"redirect":140,"path":154,"stem":155,"children":614,"page":147},[615,616,617,618,619,620,621],{"title":158,"path":159,"stem":160,"space":147,"redirect":140,"icon":162},{"title":165,"path":166,"stem":167,"space":147,"redirect":140,"icon":169},{"title":172,"path":173,"stem":174,"space":147,"redirect":140,"icon":176},{"title":179,"path":180,"stem":181,"space":147,"redirect":140,"icon":183},{"title":186,"path":187,"stem":188,"space":147,"redirect":140,"icon":190},{"title":193,"path":194,"stem":195,"space":147,"redirect":140,"icon":197},{"title":200,"path":201,"stem":202,"space":147,"redirect":140,"icon":204},{"title":207,"space":147,"redirect":140,"path":208,"stem":209,"children":623,"page":147},[624,625,626,627],{"title":207,"path":212,"stem":213,"space":147,"redirect":140,"icon":215},{"title":218,"path":219,"stem":220,"space":147,"redirect":140,"icon":222},{"title":225,"path":226,"stem":227,"space":147,"redirect":140,"icon":229},{"title":232,"path":233,"stem":234,"space":147,"redirect":140,"icon":236},{"title":239,"space":147,"redirect":140,"path":240,"stem":241,"children":629,"page":147},[630,631,632,633,634,635,636,637,638,639],{"title":244,"path":245,"stem":246,"space":147,"redirect":140,"icon":248},{"title":251,"path":252,"stem":253,"space":147,"redirect":140,"icon":236},{"title":257,"path":258,"stem":259,"space":147,"redirect":140,"icon":261},{"title":264,"path":265,"stem":266,"space":147,"redirect":140,"icon":268},{"title":271,"path":272,"stem":273,"space":147,"redirect":140,"icon":275},{"title":278,"path":279,"stem":280,"space":147,"redirect":140,"icon":282},{"title":5,"path":145,"stem":148,"space":147,"redirect":140,"icon":144},{"title":287,"path":288,"stem":289,"space":147,"redirect":140,"icon":291},{"title":294,"path":128,"stem":295,"space":147,"redirect":140,"icon":297},{"title":300,"path":301,"stem":302,"space":147,"redirect":140,"icon":304},{"title":307,"space":147,"redirect":140,"path":308,"stem":309,"children":641,"page":147},[642,643,644,645,646],{"title":312,"path":313,"stem":314,"space":147,"redirect":140,"icon":316},{"title":319,"path":320,"stem":321,"space":147,"redirect":140,"icon":323},{"title":326,"path":327,"stem":328,"space":147,"redirect":140,"icon":330},{"title":333,"path":334,"stem":335,"space":147,"redirect":140,"icon":337},{"title":340,"path":341,"stem":342,"space":147,"redirect":140,"icon":344},{"title":347,"space":147,"redirect":140,"path":348,"stem":349,"children":648,"page":147},[649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679],{"title":352,"path":353,"stem":354,"space":147,"redirect":140,"icon":356},{"title":359,"path":360,"stem":361,"space":147,"redirect":140,"icon":363},{"title":366,"path":367,"stem":368,"space":147,"redirect":140,"icon":370},{"title":373,"path":374,"stem":375,"space":147,"redirect":140,"icon":377},{"title":380,"path":381,"stem":382,"space":147,"redirect":140,"icon":384},{"title":387,"path":388,"stem":389,"space":147,"redirect":140,"icon":391},{"title":394,"path":395,"stem":396,"space":147,"redirect":140,"icon":398},{"title":401,"path":402,"stem":403,"space":147,"redirect":140,"icon":405},{"title":408,"path":409,"stem":410,"space":147,"redirect":140,"icon":412},{"title":415,"path":416,"stem":417,"space":147,"redirect":140,"icon":419},{"title":422,"path":423,"stem":424,"space":147,"redirect":140,"icon":426},{"title":429,"path":430,"stem":431,"space":147,"redirect":140,"icon":433},{"title":436,"path":437,"stem":438,"space":147,"redirect":140,"icon":440},{"title":443,"path":444,"stem":445,"space":147,"redirect":140,"icon":447},{"title":450,"path":451,"stem":452,"space":147,"redirect":140,"icon":454},{"title":457,"path":458,"stem":459,"space":147,"redirect":140,"icon":461},{"title":464,"path":465,"stem":466,"space":147,"redirect":140,"icon":468},{"title":471,"path":472,"stem":473,"space":147,"redirect":140,"icon":475},{"title":478,"path":479,"stem":480,"space":147,"redirect":140,"icon":236},{"title":484,"path":485,"stem":486,"space":147,"redirect":140,"icon":488},{"title":491,"path":492,"stem":493,"space":147,"redirect":140,"icon":495},{"title":498,"path":499,"stem":500,"space":147,"redirect":140,"icon":502},{"title":505,"path":506,"stem":507,"space":147,"redirect":140,"icon":509},{"title":512,"path":513,"stem":514,"space":147,"redirect":140,"icon":509},{"title":518,"path":519,"stem":520,"space":147,"redirect":140,"icon":522},{"title":525,"path":526,"stem":527,"space":147,"redirect":140,"icon":529},{"title":532,"path":533,"stem":534,"space":147,"redirect":140,"icon":536},{"title":539,"path":540,"stem":541,"space":147,"redirect":140,"icon":543},{"title":546,"path":547,"stem":548,"space":147,"redirect":140,"icon":229},{"title":552,"path":553,"stem":554,"space":147,"redirect":140,"icon":556},{"title":559,"path":560,"stem":561,"space":147,"redirect":140,"icon":563},{"title":566,"space":147,"redirect":140,"path":567,"stem":568,"children":681,"page":147},[682,683,684,685,686,687],{"title":571,"path":572,"stem":573,"space":147,"redirect":140,"icon":575},{"title":578,"path":579,"stem":580,"space":147,"redirect":140,"icon":582},{"title":585,"path":586,"stem":587,"space":147,"redirect":140,"icon":589},{"title":592,"path":593,"stem":594,"space":147,"redirect":140,"icon":596},{"title":599,"path":600,"stem":601,"space":147,"redirect":140,"icon":603},{"title":606,"path":607,"stem":608,"space":147,"redirect":140,"icon":610},{"left":689,"top":689,"width":690,"height":690,"rotate":689,"vFlip":147,"hFlip":147,"body":691},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>","\u003Cspan class=\"shj-syn-kwd\">use\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">crate\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>domain\u003Cspan class=\"shj-syn-oper\">::\u003C\u002Fspan>workspace_name_is_valid;\n\n\u003Cspan class=\"shj-syn-kwd\">fn\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">validate\u003C\u002Fspan>(state\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">mut\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> _\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-class\">Context\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&lt;\u003C\u002Fspan>\u003Cspan class=\"shj-syn-class\">State\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>) {\n    state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>message \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-control\">if\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">workspace_name_is_valid\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>name) {\n        \u003Cspan class=\"shj-syn-str\">\"Name is valid\"\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">into\u003C\u002Fspan>()\n    } \u003Cspan class=\"shj-syn-control\">else\u003C\u002Fspan> {\n        \u003Cspan class=\"shj-syn-str\">\"Use a name between 1 and 80 characters\"\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">into\u003C\u002Fspan>()\n    };\n}\n","\u003Cspan class=\"shj-syn-kwd\">mod\u003C\u002Fspan> domain;\n\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F Keep the generated include and mount code from the scaffold below this.\n\u003C\u002Fspan>","\u003Cspan class=\"shj-syn-cmnt\">\u002F\u002F\u002F Apply a domain rule independently of any GUI component.\n\u003C\u002Fspan>\u003Cspan class=\"shj-syn-kwd\">pub\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">fn\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">workspace_name_is_valid\u003C\u002Fspan>(name\u003Cspan class=\"shj-syn-oper\">:\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">&#38;\u003C\u002Fspan>str) \u003Cspan class=\"shj-syn-oper\">-&gt;\u003C\u002Fspan> bool {\n    \u003Cspan class=\"shj-syn-oper\">!\u003C\u002Fspan>name\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">trim\u003C\u002Fspan>()\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">is_empty\u003C\u002Fspan>() \u003Cspan class=\"shj-syn-oper\">&#38;&#38;\u003C\u002Fspan> name\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">chars\u003C\u002Fspan>()\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">count\u003C\u002Fspan>() \u003Cspan class=\"shj-syn-oper\">&lt;=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-num\">80\u003C\u002Fspan>\n}\n",1794980346211]