Skip to content

Conversation

Huliiiiii
Copy link
Member

PR Info

Add constructor methods for Value

New Features

  • Add constructor methods for Value

@@ -125,6 +125,11 @@ where
}

impl Value {
#[inline]
pub fn array<T: Into<Option<Vec<Value>>>>(array_type: ArrayType, value: T) -> Self {
Copy link
Member

@tyt2y3 tyt2y3 Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If T is ValueTypewe can skip the array_type param and just do T::array_type()

fn array<T: ValueType, I: IntoIterator<Item=T>>(values: I)

@tyt2y3 tyt2y3 changed the base branch from master to value-type August 2, 2025 11:02
@tyt2y3 tyt2y3 merged commit f86c466 into SeaQL:value-type Aug 2, 2025
29 checks passed
tyt2y3 pushed a commit that referenced this pull request Aug 2, 2025
## PR Info

Add constructor methods for `Value`

## New Features

- [x] Add constructor methods for `Value`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants