Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Schr3da/gdext-rust-tutorials
/ MySingleton
Class
MySingleton
singleton/rust/src/singleton.rs:5–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
use godot::prelude::*;
4
5
pub struct MySingleton {
6
pub data: Vec<String>,
7
}
8
9
impl MySingleton {
10
pub fn add(&mut self, d: String) {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected